.session-timeout-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 18, 28, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.session-timeout-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.session-timeout-modal {
    width: min(440px, calc(100% - 32px));
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 24px 22px;
    box-shadow: 0 24px 60px rgba(12, 18, 28, 0.25);
    text-align: center;
    color: #1f2937;
    font-family: inherit;
}

.session-timeout-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(30, 64, 175, 0.12);
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.session-timeout-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.session-timeout-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    margin-bottom: 18px;
}

.session-timeout-countdown {
    font-weight: 700;
    color: #b91c1c;
}

.session-timeout-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.session-timeout-btn {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #1f2937;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.session-timeout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.session-timeout-btn.primary {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.session-timeout-btn.outline {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #374151;
}

@media (max-width: 480px) {
    .session-timeout-actions {
        flex-direction: column;
    }

    .session-timeout-btn {
        width: 100%;
    }
}
