/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* =========================================================================
   BLAZOR RECONNECT MODAL — TRANSFACT PRO (NET 8/9 STANDARD)
   TYPOGRAPHIE NETTE, CENTRAGE PARFAIT & INDICATEURS D'ÉTAT SÉCURISÉS
   ========================================================================= */

/* 1. ÉTATS DE VISIBILITÉ CONDITIONNELLE NATIVE BLAZOR */
.components-reconnect-first-attempt-visible[b-7wj15b894d],
.components-reconnect-repeated-attempt-visible[b-7wj15b894d],
.components-reconnect-failed-visible[b-7wj15b894d],
.components-pause-visible[b-7wj15b894d],
.components-resume-failed-visible[b-7wj15b894d],
.components-rejoining-animation[b-7wj15b894d] {
    display: none !important;
}

/* Affichage dynamique selon les classes injectées par le script Blazor Server */
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-7wj15b894d],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-7wj15b894d] {
    display: block !important;
}

#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-7wj15b894d],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-7wj15b894d] {
    display: block !important;
}

#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-7wj15b894d] {
    display: block !important;
}

#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-7wj15b894d] {
    display: block !important;
}

#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-7wj15b894d] {
    display: block !important;
}

/* 2. CADRE MODAL CENTRÉ HAUTE DÉFINITION */
#components-reconnect-modal[b-7wj15b894d] {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 90%;
    max-width: 380px;
    padding: 26px 22px;
    background: linear-gradient(145deg, #0d2137 0%, #162f4d 100%);
    color: #ffffff;
    border: 1.5px solid rgba(247, 183, 49, 0.4);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
    opacity: 0;
    z-index: 10001;
    overflow: visible;
    font-family: var(--font-main, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Variante Thème Clair */
[data-theme="light"] #components-reconnect-modal[b-7wj15b894d] {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

#components-reconnect-modal[open][b-7wj15b894d] {
    opacity: 1;
    animation: components-reconnect-modal-pop-b-7wj15b894d 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#components-reconnect-modal[b-7wj15b894d]::backdrop {
    background-color: rgba(10, 19, 32, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: components-reconnect-backdrop-fade-b-7wj15b894d 0.25s ease-out;
}

@keyframes components-reconnect-modal-pop-b-7wj15b894d {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes components-reconnect-backdrop-fade-b-7wj15b894d {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 3. CONTENEUR & TEXTES CLAIRS */
.components-reconnect-container[b-7wj15b894d] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.reconnect-title[b-7wj15b894d] {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #f7b731;
}

[data-theme="light"] .reconnect-title[b-7wj15b894d] {
    color: #c8850f;
}

#components-reconnect-modal p[b-7wj15b894d] {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #cbd5e1;
}

[data-theme="light"] #components-reconnect-modal p[b-7wj15b894d] {
    color: #475569;
}

#components-seconds-to-next-attempt[b-7wj15b894d] {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: #ffffff;
}

[data-theme="light"] #components-seconds-to-next-attempt[b-7wj15b894d] {
    color: #0f172a;
}

/* 4. BOUTONS D'ACTION PRO */
#components-reconnect-modal button[b-7wj15b894d] {
    border: 0;
    background: #f7b731;
    color: #0d2137;
    padding: 9px 24px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.15s ease;
    margin-top: 6px;
}

    #components-reconnect-modal button:hover[b-7wj15b894d] {
        background: #fbbf24;
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(247, 183, 49, 0.35);
    }

    #components-reconnect-modal button:active[b-7wj15b894d] {
        transform: translateY(0);
    }

/* 5. ANIMATION ONDES RADAR SUBPIXEL */
.components-rejoining-animation[b-7wj15b894d] {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 4px auto;
}

    .components-rejoining-animation div[b-7wj15b894d] {
        position: absolute;
        box-sizing: border-box;
        border: 2.5px solid #f7b731;
        border-radius: 50%;
        animation: components-rejoining-radar-b-7wj15b894d 1.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-7wj15b894d] {
            animation-delay: -0.6s;
        }

@keyframes components-rejoining-radar-b-7wj15b894d {
    0% {
        top: 30px;
        left: 30px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 30px;
        left: 30px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0;
        left: 0;
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}
