/* Session Timeout Warning Modal */

.session-warning-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.session-warning-modal.active {
    display: flex;
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.session-warning-content {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.session-warning-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.session-warning-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0E5A73;
    margin: 0 0 0.75rem;
}

.session-warning-content p {
    color: #6b7280;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.session-warning-detail {
    color: #374151;
    font-weight: 500;
    margin-top: 1rem;
}

#sessionCountdown {
    font-weight: 700;
    color: #DC2626;
    font-size: 1.25rem;
    font-family: 'Monaco', 'Courier New', monospace;
}

.session-warning-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-direction: column;
}

#extendSessionBtn {
    background: #0E5A73;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 0.95rem;
}

#extendSessionBtn:hover {
    opacity: 0.9;
}

#logoutNowBtn {
    background: #f3f4f6;
    color: #374151;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

#logoutNowBtn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Responsive */
@media (max-width: 640px) {
    .session-warning-content {
        padding: 1.5rem;
    }
    
    .session-warning-content h2 {
        font-size: 1.25rem;
    }
    
    .session-warning-buttons {
        flex-direction: column;
    }
}
