﻿/* =========================
   SESSION EXPIRATION
========================= */

.session-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}


/* =========================
   MODALE
========================= */

.session-modal {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 28px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(15, 23, 42, .25);
    animation: sessionModalIn .25s ease-out;
}


@keyframes sessionModalIn {

    from {
        opacity: 0;
        transform: translateY(-15px) scale(.97);
    }

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


/* =========================
   ICONE
========================= */

.session-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}


/* =========================
   TITRE
========================= */

.session-content h3 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 21px;
    font-weight: 700;
}


.session-content p {
    margin: 0 auto;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    max-width: 350px;
}


/* =========================
   COMPTE À REBOURS
========================= */

.session-countdown {
    margin: 18px auto;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: #fef2f2;
    border: 5px solid #fee2e2;
    color: #dc2626;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


    .session-countdown span {
        font-size: 26px;
        font-weight: 700;
        line-height: 1;
    }


    .session-countdown small {
        font-size: 10px;
        margin-top: 4px;
        color: #ef4444;
    }


.session-info {
    margin-top: 5px !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
}


/* =========================
   BOUTONS
========================= */

.session-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}


.btn-session-continue,
.btn-session-logout {
    height: 42px;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all .2s ease;
}


.btn-session-continue {
    background: #4f46e5;
    color: white;
    box-shadow: 0 4px 10px rgba(79,70,229,.25);
}


    .btn-session-continue:hover {
        background: #4338ca;
        transform: translateY(-1px);
    }


.btn-session-logout {
    background: #f1f5f9;
    color: #475569;
}


    .btn-session-logout:hover {
        background: #e2e8f0;
    }


/* =========================
   MOBILE
========================= */

@media (max-width: 500px) {

    .session-modal {
        padding: 25px 18px;
        border-radius: 14px;
    }

    .session-content h3 {
        font-size: 19px;
    }

    .session-actions {
        flex-direction: column;
    }

    .btn-session-continue,
    .btn-session-logout {
        width: 100%;
    }
}
