/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-k0egiu8q2u] {
    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-k0egiu8q2u] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* This dialog is the .NET-default Blazor Server "circuit lost" UI (ReconnectModal.razor / .js);
   its markup/ids/classes are driven by that script's state machine and Blazor's own reconnection
   handler, so only the STYLING here — never the selectors — should change.

   It renders as a plain sibling of <Routes> in App.razor, outside MudLayout, and its whole job is
   to work even while the SignalR circuit is down. It leans on MudBlazor's CSS custom properties
   (--mud-palette-*, set by MudThemeProvider's server-rendered <style> block, so they exist in the
   DOM from first paint and survive a dropped circuit) rather than the app's own C#/Blazor state, so
   it needs no live component to look right, and it inherits light/dark automatically since those
   variables already flip with IsDarkMode. Every var() below carries a literal fallback matching
   AppTheme's brand teal, for the split second before that stylesheet exists. */

.components-reconnect-first-attempt-visible[b-pjaeifbycn],
.components-reconnect-repeated-attempt-visible[b-pjaeifbycn],
.components-reconnect-failed-visible[b-pjaeifbycn],
.components-pause-visible[b-pjaeifbycn],
.components-resume-failed-visible[b-pjaeifbycn],
.components-rejoining-animation[b-pjaeifbycn] {
    display: none;
}

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


#components-reconnect-modal[b-pjaeifbycn] {
    /* True viewport centering — a dialog shown via showModal() is UA-positioned, but this pins it
       explicitly so it can never end up off-center or clipped by an ancestor. */
    position: fixed;
    inset: 0;
    margin: auto;

    background-color: var(--mud-palette-surface, #ffffff);
    color: var(--mud-palette-text-primary, #111827);
    font-family: var(--mud-typography-default-family, "Montserrat", Helvetica, Arial, sans-serif);

    width: 22rem;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    padding: 2rem 1.75rem;

    border: 1px solid var(--mud-palette-lines-default, #e2e8f0);
    border-radius: var(--mud-default-borderradius, 6px);
    box-shadow: var(--mud-elevation-8, 0 8px 24px rgba(15, 23, 42, .35));

    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-pjaeifbycn 0.5s both;
}

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

#components-reconnect-modal[b-pjaeifbycn]::backdrop {
    background-color: var(--mud-palette-overlay-dark, rgba(15, 23, 42, .6));
    backdrop-filter: blur(2px);
    animation: components-reconnect-modal-fadeInOpacity-b-pjaeifbycn 0.5s ease-in-out;
    opacity: 1;
}

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

#components-reconnect-modal p[b-pjaeifbycn] {
    margin: 0;
    text-align: center;
    font-size: .95rem;
    line-height: 1.5;
}

/* The two "things went wrong" states read as a headline over an explanatory line — give the
   headline a touch more weight instead of every paragraph looking identical. */
#components-reconnect-modal p:first-of-type[b-pjaeifbycn],
#components-reconnect-modal .components-pause-visible[b-pjaeifbycn] {
    font-size: 1.0625rem;
    font-weight: 600;
}

#components-reconnect-modal .components-reconnect-repeated-attempt-visible[b-pjaeifbycn] {
    color: var(--mud-palette-text-secondary, #64748b);
}

#components-reconnect-modal button[b-pjaeifbycn] {
    border: none;
    cursor: pointer;
    background-color: var(--mud-palette-primary, #0f766e);
    color: var(--mud-palette-primary-text, #ffffff);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: .6rem 1.75rem;
    border-radius: var(--mud-default-borderradius, 6px);
    transition: background-color .15s ease;
}

    #components-reconnect-modal button:hover[b-pjaeifbycn] {
        background-color: var(--mud-palette-primary-darken, #0b5a54);
    }

    #components-reconnect-modal button:active[b-pjaeifbycn] {
        background-color: var(--mud-palette-primary, #0f766e);
    }

    #components-reconnect-modal button:focus-visible[b-pjaeifbycn] {
        outline: 2px solid var(--mud-palette-primary, #0f766e);
        outline-offset: 2px;
    }

.components-rejoining-animation[b-pjaeifbycn] {
    position: relative;
    width: 80px;
    height: 80px;
}

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

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

@keyframes components-rejoining-animation-b-pjaeifbycn {
    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;
    }
}
