/* Enhanced Logout Confirmation Modal */
.logout-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.logout-modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.logout-modal-header {
    background: linear-gradient(135deg, #556B2F 0%, #4A5D29 100%);
    color: white;
    padding: 30px 25px 25px;
    text-align: center;
    position: relative;
}

.logout-modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logout-modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.logout-modal-body {
    padding: 30px 25px;
    text-align: center;
}

.logout-modal-message {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0 0 25px;
    line-height: 1.5;
    font-weight: 400;
}

.logout-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.logout-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.logout-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.logout-btn:hover:before {
    left: 100%;
}

.logout-btn-confirm {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logout-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.logout-btn-confirm:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logout-btn-cancel {
    background: transparent;
    color: #556B2F;
    border: 2px solid #556B2F;
    box-shadow: 0 2px 8px rgba(85, 107, 47, 0.2);
}

.logout-btn-cancel:hover {
    background: #556B2F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.3);
}

.logout-btn-cancel:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(85, 107, 47, 0.2);
}

/* Close button */
.logout-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.logout-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .logout-modal {
        width: 95%;
        margin: 20px;
    }
    
    .logout-modal-header {
        padding: 25px 20px 20px;
    }
    
    .logout-modal-body {
        padding: 25px 20px;
    }
    
    .logout-modal-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .logout-btn {
        width: 100%;
        min-width: auto;
    }
    
    .logout-modal-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .logout-modal-title {
        font-size: 1.2rem;
    }
    
    .logout-modal-message {
        font-size: 1rem;
    }
}

/* Loading state */
.logout-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.logout-btn.loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}