﻿/* ================================================================
   LANGUAGE LOADING OVERLAY
================================================================ */

.language-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    background: rgba(5, 20, 45, 0.62);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
}

    .language-loading-overlay.show {
        visibility: visible;
        opacity: 1;
        pointer-events: all;
    }

.language-loading-content {
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 30px 38px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.32);
}

.language-loading-spinner {
    width: 3.5rem;
    height: 3.5rem;
    color: #2375d8;
    border-width: 0.32em;
}

.language-loading-text {
    color: var(--tt-navy);
    font-size: 1rem;
    font-weight: 700;
}


/* ================================================================
   SESSION LOADING OVERLAY
================================================================ */

.session-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    background: rgba(4, 22, 47, 0.70);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}

    .session-loading-overlay.show {
        visibility: visible;
        opacity: 1;
        pointer-events: all;
    }

.session-loading-content {
    min-width: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 40px;
    background: #ffffff;
    border: 1px solid rgba(11, 47, 99, 0.10);
    border-radius: 18px;
    box-shadow: 0 26px 75px rgba(0, 0, 0, 0.30);
    text-align: center;
}

.session-loading-spinner {
    width: 3.4rem;
    height: 3.4rem;
    margin-bottom: 6px;
    color: #2375d8;
    border-width: 0.30em;
}

.session-loading-title {
    color: #0b2f63;
    font-size: 1rem;
    font-weight: 800;
}

.session-loading-subtitle {
    max-width: 260px;
    color: #6c788d;
    font-size: 0.74rem;
    line-height: 1.4;
}

/* ================================================================
   AVISO DE EXPIRACIÓN DE SESIÓN
================================================================ */

.session-expiry-modal .modal-dialog {
    max-width: 400px;
}

.session-expiry-content {
    align-items: center;
    gap: 10px;
    padding: 28px 28px 24px;
    background: #ffffff;
    border: 1px solid rgba(11, 47, 99, 0.10);
    border-radius: 18px;
    box-shadow: 0 26px 75px rgba(0, 0, 0, 0.30);
    text-align: center;
}

.session-expiry-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a5a00;
    background: #fff4d6;
    border-radius: 50%;
    font-size: 1.6rem;
}

.session-expiry-title {
    margin: 4px 0 0;
    color: #0b2f63;
    font-size: 1.05rem;
    font-weight: 800;
}

.session-expiry-message {
    max-width: 300px;
    margin: 0;
    color: #6c788d;
    font-size: 0.8rem;
    line-height: 1.45;
}

.session-expiry-countdown {
    margin: 6px 0 4px;
    color: #0b2f63;
    font-size: 2.2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.session-expiry-error {
    width: 100%;
    padding: 8px 10px;
    color: #9d2430;
    background: #fff1f2;
    border: 1px solid rgba(190, 40, 55, 0.15);
    border-radius: 9px;
    font-size: 0.74rem;
    font-weight: 650;
}

.session-expiry-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

    .session-expiry-actions button {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0 14px;
        border-radius: 10px;
        font-size: 0.78rem;
        font-weight: 800;
    }

.session-expiry-logout {
    color: #0b2f63;
    background: #ffffff;
    border: 1px solid #d6dde7;
}

    .session-expiry-logout:hover {
        background: #f3f7fb;
    }

.session-expiry-continue {
    color: #071f43;
    background: #ffc400;
    border: 1px solid #ffc400;
}

    .session-expiry-continue:hover:not(:disabled) {
        filter: brightness(1.03);
    }

    .session-expiry-continue:disabled {
        opacity: 0.65;
    }

@media (max-width: 420px) {
    .session-expiry-actions {
        grid-template-columns: 1fr;
    }
}
