/**
 * Logout Modal Styles
 * Beautiful logout confirmation UI
 */

/* Modal Overlay */
.logout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.logout-modal.active {
    opacity: 1;
    visibility: visible;
}

.logout-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Modal Content */
.logout-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.logout-modal.active .logout-modal-content {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.logout-modal-header {
    margin-bottom: 32px;
}

.logout-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse-icon 2s infinite;
}

.logout-icon i {
    font-size: 32px;
    color: #dc2626;
}

.logout-icon.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    animation: none;
}

.logout-icon.success i {
    color: #059669;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(220, 38, 38, 0);
    }
}

.logout-modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.logout-modal-header p {
    font-size: 16px;
    color: var(--gray-600);
    margin: 0;
}

/* Modal Actions */
.logout-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.logout-modal-actions .btn-secondary,
.logout-modal-actions .btn-primary {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.logout-modal-actions .btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
}

.logout-modal-actions .btn-secondary:hover {
    background: var(--gray-200);
}

.logout-modal-actions .btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logout-modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.logout-modal-actions .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .logout-modal-content {
        padding: 32px 24px;
        margin: 20px;
    }

    .logout-icon {
        width: 64px;
        height: 64px;
    }

    .logout-icon i {
        font-size: 24px;
    }

    .logout-modal-header h3 {
        font-size: 20px;
    }

    .logout-modal-actions {
        flex-direction: column;
    }

    .logout-modal-actions .btn-secondary,
    .logout-modal-actions .btn-primary {
        width: 100%;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .logout-modal-content {
        background: var(--gray-800);
    }

    .logout-modal-header h3 {
        color: white;
    }

    .logout-modal-header p {
        color: var(--gray-400);
    }
}