/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-po8unhyzxv] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-po8unhyzxv] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ── visibility state machine (unchanged logic) ── */
.components-reconnect-first-attempt-visible[b-6z1meq5i0d],
.components-reconnect-repeated-attempt-visible[b-6z1meq5i0d],
.components-reconnect-failed-visible[b-6z1meq5i0d],
.components-pause-visible[b-6z1meq5i0d],
.components-resume-failed-visible[b-6z1meq5i0d],
.components-rejoining-animation[b-6z1meq5i0d] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-6z1meq5i0d],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-6z1meq5i0d],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-6z1meq5i0d],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-6z1meq5i0d],
#components-reconnect-modal.components-reconnect-retrying[b-6z1meq5i0d],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-6z1meq5i0d],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-6z1meq5i0d],
#components-reconnect-modal.components-reconnect-failed[b-6z1meq5i0d],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-6z1meq5i0d] {
    display: block;
}

/* ── Full-page dialog ── */
#components-reconnect-modal[b-6z1meq5i0d] {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    opacity: 0;
    transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete;
    animation: fm-reconnect-fade-out-b-6z1meq5i0d 0.4s both;
}

#components-reconnect-modal[open][b-6z1meq5i0d] {
    animation: fm-reconnect-fade-in-b-6z1meq5i0d 0.5s ease both;
}

/* hide backdrop — the dialog itself is full-screen */
#components-reconnect-modal[b-6z1meq5i0d]::backdrop {
    display: none;
}

@keyframes fm-reconnect-fade-in-b-6z1meq5i0d {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fm-reconnect-fade-out-b-6z1meq5i0d {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* ── Subtle grid background (mirrors hero-grid) ── */
#components-reconnect-modal[b-6z1meq5i0d]::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26,26,26,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26,26,26,0.055) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    animation: fm-grid-appear-b-6z1meq5i0d 1s ease both;
}

@keyframes fm-grid-appear-b-6z1meq5i0d {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Centred content stack ── */
.components-reconnect-container[b-6z1meq5i0d] {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
}

/* ── FerroMax wordmark ── */
.fm-reconnect-logo[b-6z1meq5i0d] {
    width: clamp(180px, 40vw, 420px);
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.18;
    animation: fm-logo-in-b-6z1meq5i0d 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes fm-logo-in-b-6z1meq5i0d {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 0.18; transform: translateY(0); }
}

/* ── Pulse rings (brand colours) ── */
.components-rejoining-animation[b-6z1meq5i0d] {
    position: relative;
    width: 56px;
    height: 56px;
}

.components-rejoining-animation div[b-6z1meq5i0d] {
    position: absolute;
    border: 2px solid #c8a96e;
    opacity: 1;
    border-radius: 50%;
    animation: fm-ring-pulse-b-6z1meq5i0d 1.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-6z1meq5i0d] {
    animation-delay: -0.8s;
}

@keyframes fm-ring-pulse-b-6z1meq5i0d {
    0% {
        top: 28px; left: 28px;
        width: 0; height: 0;
        opacity: 0;
    }
    5% {
        top: 28px; left: 28px;
        width: 0; height: 0;
        opacity: 1;
    }
    100% {
        top: 0; left: 0;
        width: 56px; height: 56px;
        opacity: 0;
    }
}

/* ── Status text ── */
#components-reconnect-modal p[b-6z1meq5i0d] {
    margin: 0;
    text-align: center;
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    font-size: clamp(0.6rem, 1.2vw, 0.78rem);
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(26, 26, 26, 0.45);
}

/* countdown number — slightly brighter */
#components-seconds-to-next-attempt[b-6z1meq5i0d] {
    color: #c8a96e;
}

/* ── Retry / Resume buttons ── */
#components-reconnect-modal button[b-6z1meq5i0d] {
    border: 1px solid rgba(26,26,26,0.18);
    background: transparent;
    color: rgba(26,26,26,0.55);
    padding: 0.45rem 2rem;
    border-radius: 0;
    font-family: 'Barlow', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

#components-reconnect-modal button:hover[b-6z1meq5i0d] {
    border-color: #c8a96e;
    color: #c8a96e;
    background: transparent;
}

#components-reconnect-modal button:active[b-6z1meq5i0d] {
    background: rgba(200,169,110,0.08);
}
