/**
 * ═══════════════════════════════════════════════════════════════
 * LOGOUT CONFIRMATION MODAL - Sleek Purple-Blue Design
 * File: logout-modal.css
 * ═══════════════════════════════════════════════════════════════
 */

/* Modal Overlay - Darkens background */
.logout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.logout-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Container */
.logout-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
    border-radius: 24px;
    padding: 0;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.logout-modal-overlay.active .logout-modal {
    transform: scale(1);
    opacity: 1;
}

/* Modal Header - Gradient Purple-Blue */
.logout-modal-header {
    background: #19427f;
    padding: 30px;
    text-align: center;
    position: relative;
}

.logout-modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s ease-in-out infinite;
}

.logout-modal-icon i {
    font-size: 2.5rem;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
}

.logout-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.logout-modal-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

/* Modal Body */
.logout-modal-body {
    padding: 35px 30px;
    text-align: center;
}

.logout-modal-message {
    font-size: 1.05rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

/* Modal Actions */
.logout-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.logout-modal-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
}

/* Desktop-only fix for text wrapping */
@media (min-width: 481px) {
    .logout-modal-btn {
        white-space: nowrap; /* Prevent wrapping on desktop only */
        min-width: 160px; /* Slightly wider on desktop */
    }
}

.logout-modal-btn i {
    font-size: 1.2rem;
}

/* Cancel Button */
.logout-modal-btn-cancel {
    background: transparent;
    color: #b8b4b4;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.logout-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Logout Button - Gradient Purple-Blue */
.logout-modal-btn-confirm {
    background: #19427f;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.logout-modal-btn-confirm:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.logout-modal-btn-confirm:active {
    transform: translateY(0);
}

/* Loading State */
.logout-modal-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.logout-modal-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .logout-modal {
        width: 95%;
        max-width: none;
    }
    
    .logout-modal-header {
        padding: 25px 20px;
    }
    
    .logout-modal-icon {
        width: 70px;
        height: 70px;
    }
    
    .logout-modal-icon i {
        font-size: 2rem;
    }
    
    .logout-modal-title {
        font-size: 1.5rem;
    }
    
    .logout-modal-subtitle {
        font-size: 0.9rem;
    }
    
    .logout-modal-body {
        padding: 25px 20px;
    }
    
    .logout-modal-message {
        font-size: 0.95rem;
    }
    
    .logout-modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .logout-modal-btn {
        width: 100%;
        min-width: 0;
    }
}