/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-3ut0blusch] {
    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-3ut0blusch] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Every state's block is hidden until blazor.web.js puts that state's class on the dialog. */
.components-reconnect-first-attempt-visible[b-wqlsxw15ye],
.components-reconnect-repeated-attempt-visible[b-wqlsxw15ye],
.components-reconnect-failed-visible[b-wqlsxw15ye],
.components-pause-visible[b-wqlsxw15ye],
.components-resume-failed-visible[b-wqlsxw15ye],
.components-rejoining-animation[b-wqlsxw15ye] {
    display: none;
}

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

#components-reconnect-modal.components-reconnect-failed .btn.components-reconnect-failed-visible[b-wqlsxw15ye],
#components-reconnect-modal.components-reconnect-paused .btn.components-pause-visible[b-wqlsxw15ye],
#components-reconnect-modal.components-reconnect-resume-failed .btn.components-resume-failed-visible[b-wqlsxw15ye] {
    display: inline-flex;
}

/* The dialog uses the app's own colours (app.css variables), so it follows light and dark mode. */
#components-reconnect-modal[b-wqlsxw15ye] {
    width: min(24rem, calc(100vw - 32px));
    margin: 18vh auto auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    opacity: 0;
    transition: display .3s allow-discrete, overlay .3s allow-discrete;
    animation: reconnect-fade-out-b-wqlsxw15ye .3s both;
}

#components-reconnect-modal[open][b-wqlsxw15ye] {
    animation: reconnect-slide-up-b-wqlsxw15ye .45s cubic-bezier(.2, .9, .3, 1.05) .25s both, reconnect-fade-in-b-wqlsxw15ye .3s ease-out .25s both;
}

#components-reconnect-modal[b-wqlsxw15ye]::backdrop {
    background: rgba(10, 12, 18, .55);
    backdrop-filter: blur(2px);
    animation: reconnect-fade-in-b-wqlsxw15ye .3s ease-out;
}

.reconnect-card[b-wqlsxw15ye] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 28px 24px;
    text-align: center;
    border-top: 4px solid var(--accent);
    border-radius: 14px;
}

.reconnect-icon[b-wqlsxw15ye] {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
}

.reconnect-icon svg[b-wqlsxw15ye] { display: none; }
#components-reconnect-modal.components-reconnect-failed .reconnect-warning[b-wqlsxw15ye],
#components-reconnect-modal.components-reconnect-resume-failed .reconnect-warning[b-wqlsxw15ye],
#components-reconnect-modal.components-reconnect-paused .reconnect-pause[b-wqlsxw15ye] {
    display: block;
}

.reconnect-spinner[b-wqlsxw15ye] {
    width: 28px;
    height: 28px;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: reconnect-spin-b-wqlsxw15ye .8s linear infinite;
}

#components-reconnect-modal h2[b-wqlsxw15ye] {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

#components-reconnect-modal p[b-wqlsxw15ye] {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

#components-reconnect-modal p strong[b-wqlsxw15ye] { color: var(--text); }

.reconnect-actions[b-wqlsxw15ye] {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

@keyframes reconnect-spin-b-wqlsxw15ye { to { transform: rotate(360deg); } }
@keyframes reconnect-slide-up-b-wqlsxw15ye { from { transform: translateY(16px) scale(.97); } to { transform: none; } }
@keyframes reconnect-fade-in-b-wqlsxw15ye { from { opacity: 0; } to { opacity: 1; } }
@keyframes reconnect-fade-out-b-wqlsxw15ye { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[b-wqlsxw15ye], #components-reconnect-modal[open][b-wqlsxw15ye], .reconnect-spinner[b-wqlsxw15ye] { animation-duration: 0s; }
    .reconnect-spinner[b-wqlsxw15ye] { animation: none; border-right-color: currentColor; opacity: .6; }
}
