/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* App-shell layout lives in wwwroot/css/site.css (global, shared with child
   components). #blazor-error-ui is styled globally in wwwroot/app.css. */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ---- State-driven visibility (toggled by Blazor's reconnection JS) ---------- */
.components-reconnect-first-attempt-visible[b-o5fj0gaxp4],
.components-reconnect-repeated-attempt-visible[b-o5fj0gaxp4],
.components-reconnect-failed-visible[b-o5fj0gaxp4],
.components-pause-visible[b-o5fj0gaxp4],
.components-resume-failed-visible[b-o5fj0gaxp4],
.components-rejoining-animation[b-o5fj0gaxp4] {
    display: none;
}

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

/* ---- Appearance (DiSky design tokens, theme-aware via :root cascade) --------- */
#components-reconnect-modal[b-o5fj0gaxp4] {
    font-family: var(--font-sans);
    color: var(--fg);
    background-color: var(--bg-raised);
    width: 22rem;
    max-width: calc(100vw - 2rem);
    margin: 18vh auto;
    padding: 1.75rem 2rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-o5fj0gaxp4 0.4s both;
}

#components-reconnect-modal[open][b-o5fj0gaxp4] {
    animation: components-reconnect-modal-slideUp-b-o5fj0gaxp4 1.2s cubic-bezier(.05, .89, .25, 1.02) 0.2s,
               components-reconnect-modal-fadeInOpacity-b-o5fj0gaxp4 0.4s ease-in-out 0.2s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-o5fj0gaxp4]::backdrop {
    background-color: rgba(8, 9, 12, 0.6);
    backdrop-filter: blur(3px);
    animation: components-reconnect-modal-fadeInOpacity-b-o5fj0gaxp4 0.4s ease-in-out;
    opacity: 1;
}

.components-reconnect-container[b-o5fj0gaxp4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

#components-reconnect-modal p[b-o5fj0gaxp4] {
    margin: 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: var(--fg-muted);
}

#components-reconnect-modal #components-seconds-to-next-attempt[b-o5fj0gaxp4] {
    font-family: var(--font-mono);
    color: var(--fg);
}

#components-reconnect-modal button[b-o5fj0gaxp4] {
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    border: 0;
    cursor: pointer;
    background-color: var(--primary);
    color: var(--primary-fg);
    padding: 8px 22px;
    border-radius: var(--radius);
    transition: background-color var(--dur) var(--ease);
}

#components-reconnect-modal button:hover[b-o5fj0gaxp4] {
    background-color: var(--primary-hover);
}

#components-reconnect-modal button:active[b-o5fj0gaxp4] {
    background-color: var(--primary);
}

/* ---- Spinner ---------------------------------------------------------------- */
.components-rejoining-animation[b-o5fj0gaxp4] {
    position: relative;
    width: 72px;
    height: 72px;
}

.components-rejoining-animation div[b-o5fj0gaxp4] {
    position: absolute;
    border: 3px solid var(--primary);
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-o5fj0gaxp4 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

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

@keyframes components-rejoining-animation-b-o5fj0gaxp4 {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0;
        left: 0;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

@keyframes components-reconnect-modal-slideUp-b-o5fj0gaxp4 {
    0% {
        transform: translateY(30px) scale(0.96);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-o5fj0gaxp4 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-o5fj0gaxp4 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}
