/**
 * Logout Modal Styling
 * Professional SPARK modal design for logout confirmation
 */

/* Modal Overlay */
.spark-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.15s ease forwards;
    padding: var(--spacing-4);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Modal Container */
.spark-modal {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Modal Header */
.spark-modal-header {
    padding: 2rem 1.5rem 1rem;
    background: transparent;
    border-bottom: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.logout-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 1.5rem;
}

.logout-icon-wrapper i {
    color: #dc2626;
    font-size: 1.75rem;
}

.spark-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
}

.spark-modal-close:hover {
    color: #1e293b;
    background: #f1f5f9;
}

/* Modal Body */
.spark-modal-body {
    padding: 4rem 2rem 2rem;
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
    overflow-y: auto;
    text-align: center;
}

#logoutConfirmContent {
    padding: 0;
}

.logout-title {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin: 0 0 0.75rem;
}

.logout-message {
    color: #475569;
    font-size: 1rem;
    margin: 0 0 0.5rem;
    font-weight: var(--font-weight-medium);
}

.logout-submessage {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

#logoutLoadingContent {
    padding: 1rem 0;
}

.logout-farewell {
    padding: 1rem 0;
}

.logout-farewell-title {
    color: #1e3c72;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin: 1rem 0 0.5rem;
    letter-spacing: -0.02em;
}

.logout-farewell-message {
    color: #64748b;
    font-size: 0.9375rem;
    margin: 0;
}

/* Modal Footer */
.spark-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    background: transparent;
    border-top: 1px solid #f1f5f9;
    gap: 0.75rem;
    display: flex;
    justify-content: center;
}

/* SPARK Buttons - Enterprise Design */
.btn-spark {
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: 2px;
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
    border: none;
    transition: background 0.15s ease;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    cursor: pointer;
    height: 32px;
}

.btn-spark-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-spark-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

.btn-spark-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-spark-danger:hover {
    background: #b91c1c;
}

.btn-spark i {
    font-size: 0.875rem;
}

/* Loading State */
.logout-spinner {
    margin: 1.5rem 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logout-spinner i {
    color: #1e3c72;
    font-size: 3rem;
}

/* Responsive */
@media (max-width: 576px) {
    .spark-modal {
        max-width: 95%;
        margin: 1rem;
    }

    .spark-modal-header {
        padding: 1.5rem 1rem 0.75rem;
    }

    .logout-icon-wrapper {
        width: 56px;
        height: 56px;
        top: 1rem;
    }

    .logout-icon-wrapper i {
        font-size: 1.5rem;
    }

    .spark-modal-body {
        padding: 3.5rem 1.5rem 1.5rem;
    }

    .logout-title {
        font-size: 1.25rem;
    }

    .logout-message {
        font-size: 0.9375rem;
    }

    .logout-farewell-title {
        font-size: 1.75rem;
    }

    .spark-modal-footer {
        padding: var(--spacing-4);
        flex-direction: column;
    }

    .btn-spark {
        width: 100%;
        min-width: auto;
    }
}