/* /Components/Layout/AppConnectingBanner.razor.rz.scp.css */
/* Scoped to this component on purpose. CSS isolation stamps its scope attribute only on elements
   authored in the component that owns the stylesheet — styling this markup from MainLayout's
   .razor.css would compile to a selector that matches nothing, which is precisely the bug that
   left the unhandled-error bar unstyled and invisible. */
.sd-connecting[b-jzrrn6yodq] {
    color-scheme: light only;
    align-items: center;
    background: #FFF4CE;
    border-bottom: 1px solid #E8D9A0;
    box-sizing: border-box;
    color: #4A3F1A;
    display: flex;
    font-size: 0.875rem;
    gap: 0.5rem;
    left: 0;
    padding: 0.4rem 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    /* Below the error bar (1000) — a real failure outranks "still starting". */
    z-index: 900;
}

.sd-connecting-dot[b-jzrrn6yodq] {
    animation: sd-connecting-pulse-b-jzrrn6yodq 1s ease-in-out infinite;
    background: #B58900;
    border-radius: 50%;
    flex: 0 0 auto;
    height: 0.5rem;
    width: 0.5rem;
}

@keyframes sd-connecting-pulse-b-jzrrn6yodq {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
    .sd-connecting-dot[b-jzrrn6yodq] {
        animation: none;
    }
}
/* /Components/Layout/AppErrorUi.razor.rz.scp.css */
/* Blazor's unhandled-error bar. Must live here, not in the shell's stylesheet: CSS isolation
   stamps its scope attribute only on elements authored in the component that owns the .css file,
   and the div is authored in AppErrorUi.razor. */
#blazor-error-ui[b-nr402n7r2g] {
    color-scheme: light only;
    background: lightyellow;

    /* Explicit, and deliberately a literal rather than a theme variable. The bar renders OUTSIDE
       MudLayout, so it inherits `body { color: var(--mud-palette-text-primary) }` from MudBlazor —
       which is #E0E0E0 in dark mode, i.e. near-white on pale yellow. `color-scheme: light only`
       does not help: it governs UA-rendered widgets and system colour keywords, not an inherited
       author colour. A theme variable would also fail in the one case that matters most — the bar
       can be shown before MudThemeProvider has emitted its :root block, and an unresolvable var()
       falls back to canvastext, which is white under a dark browser scheme. */
    color: #212121;

    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 .reload[b-nr402n7r2g] {
        color: #212121;
        text-decoration: underline;
    }

    #blazor-error-ui .dismiss[b-nr402n7r2g] {
        color: #212121;
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-quhq2tgw6u],
.components-reconnect-repeated-attempt-visible[b-quhq2tgw6u],
.components-reconnect-failed-visible[b-quhq2tgw6u],
.components-pause-visible[b-quhq2tgw6u],
.components-resume-failed-visible[b-quhq2tgw6u],
.components-rejoining-animation[b-quhq2tgw6u] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-quhq2tgw6u],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-quhq2tgw6u],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-quhq2tgw6u],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-quhq2tgw6u],
#components-reconnect-modal.components-reconnect-retrying[b-quhq2tgw6u],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-quhq2tgw6u],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-quhq2tgw6u],
#components-reconnect-modal.components-reconnect-failed[b-quhq2tgw6u],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-quhq2tgw6u] {
    display: block;
}


#components-reconnect-modal[b-quhq2tgw6u] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-quhq2tgw6u 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-quhq2tgw6u 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-quhq2tgw6u 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-quhq2tgw6u]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-quhq2tgw6u 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-quhq2tgw6u {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-quhq2tgw6u {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-quhq2tgw6u {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-quhq2tgw6u] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-quhq2tgw6u] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-quhq2tgw6u] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-quhq2tgw6u] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-quhq2tgw6u] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-quhq2tgw6u] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-quhq2tgw6u] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-quhq2tgw6u 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-quhq2tgw6u] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-quhq2tgw6u {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
