/* ===== EXIT CONFIRMATION MODAL STYLES ===== */

/* Modal overlay */
.exit-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

/* Modal content container */
.exit-modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(220, 53, 69, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

/* Modal title */
.exit-modal-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Button container */
.exit-modal-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}

/* Modal buttons */
.exit-cancel-btn,
.exit-confirm-btn {
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cancel button (default selected) */
.exit-cancel-btn {
    background: linear-gradient(145deg, #6c757d, #5a6268);
    color: #ffffff;
    border-color: #6c757d;
}

.exit-cancel-btn:hover {
    background: linear-gradient(145deg, #5a6268, #495057);
    border-color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Confirm button */
.exit-confirm-btn {
    background: linear-gradient(145deg, #dc3545, #c82333);
    color: #ffffff;
    border-color: #dc3545;
}

.exit-confirm-btn:hover {
    background: linear-gradient(145deg, #c82333, #bd2130);
    border-color: #bd2130;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Selected button state */
.exit-cancel-btn.selected,
.exit-confirm-btn.selected {
    border-color: #ffffff;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

/* Button pressed state */
.exit-cancel-btn:active,
.exit-confirm-btn:active {
    transform: scale(0.95) translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Hint text */
.exit-modal-hint {
    color: #adb5bd;
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
}

/* Modal animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .exit-modal-content {
        padding: 20px;
        margin: 0 10px;
    }
    
    .exit-modal-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .exit-modal-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .exit-cancel-btn,
    .exit-confirm-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
    }
    
    .exit-modal-hint {
        font-size: 0.8rem;
    }
}

/* Tablet responsive */
@media (min-width: 481px) and (max-width: 768px) {
    .exit-modal-content {
        max-width: 350px;
    }
    
    .exit-modal-buttons {
        gap: 14px;
    }
    
    .exit-cancel-btn,
    .exit-confirm-btn {
        min-width: 90px;
        padding: 11px 22px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .exit-modal-content {
        border-width: 3px;
        background: #000000;
    }
    
    .exit-cancel-btn,
    .exit-confirm-btn {
        border-width: 3px;
    }
    
    .exit-modal-title {
        color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .exit-modal-content {
        animation: none;
    }
    
    .exit-cancel-btn,
    .exit-confirm-btn {
        transition: none;
    }
    
    .exit-cancel-btn:hover,
    .exit-confirm-btn:hover {
        transform: none;
    }
}
