/* /Components/BrandLogo.razor.rz.scp.css */
/* BrandLogo (Phase A/B) — shared, scoped logo presentation. Structural
   centering only for the wrapper; treatments and sizes are fixed,
   enum-derived classes/attributes — never free-form CSS from the database.
   Treatment/size configurability is Phase B; ambient (theme-dependent)
   treatment selectors live in the GLOBAL theme.css instead of here, because
   theme state (html[data-theme]) is owned by an ancestor OUTSIDE this
   component — Blazor's CSS isolation only scopes elements this component
   itself renders, so an ancestor-theme selector belongs in an unscoped
   stylesheet. The explicit preview-background rules below stay here because
   BOTH the attribute and the element they match are rendered by THIS
   component (verified against the generated scoped bundle). */

.brand-logo[b-cnni5ckufl] {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.brand-logo--auth[b-cnni5ckufl] {
    margin: 0 0 1.25rem;
}

.brand-logo--access-denied[b-cnni5ckufl] {
    margin: 0 0 1rem;
}

.brand-logo__image[b-cnni5ckufl] {
    display: block;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

/* --- Login-card sizes (Login/TemporaryLogin/TemporaryInvite/TemporaryVerify/
   Setup/BrandedAccessDenied) — constrained clamp(), aspect ratio preserved.
   "large" reproduces the exact Phase A value/default. */
.brand-logo__image--login-small[b-cnni5ckufl] { max-height: clamp(2.25rem, 6vw, 3rem); }
.brand-logo__image--login-medium[b-cnni5ckufl] { max-height: clamp(2.75rem, 7.5vw, 4rem); }
.brand-logo__image--login-large[b-cnni5ckufl] { max-height: clamp(3.5rem, 9vw, 5.5rem); }
.brand-logo__image--login-xlarge[b-cnni5ckufl] { max-height: clamp(4.25rem, 11vw, 7rem); }

/* --- Header sizes — "medium" reproduces the exact Phase A value/default. --- */
.brand-logo__image--header-small[b-cnni5ckufl] { height: 1.3rem; width: auto; max-width: 9rem; }
.brand-logo__image--header-medium[b-cnni5ckufl] { height: 1.6rem; width: auto; max-width: 11rem; }
.brand-logo__image--header-large[b-cnni5ckufl] { height: 2rem; width: auto; max-width: 13rem; }

/* --- Explicit preview-background treatment overrides (BrandingAdmin only).
   Both data-preview-background and data-dark/light-treatment are rendered on
   the SAME <img> by this component, so this scoped selector applies
   correctly regardless of the admin's own current theme. Ambient theme.css
   rules exclude themselves via :not([data-preview-background]) so the two
   never fight over the same element. */
.brand-logo__image[data-preview-background="dark"][data-dark-treatment="invert"][b-cnni5ckufl] { filter: invert(1); }
.brand-logo__image[data-preview-background="dark"][data-dark-treatment="force-white"][b-cnni5ckufl] { filter: brightness(0) invert(1); }
.brand-logo__image[data-preview-background="light"][data-light-treatment="invert"][b-cnni5ckufl] { filter: invert(1); }
.brand-logo__image[data-preview-background="light"][data-light-treatment="force-black"][b-cnni5ckufl] { filter: brightness(0); }
/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-bbcz8id87m] {
    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-bbcz8id87m] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-m5lorsgfgc],
.components-reconnect-repeated-attempt-visible[b-m5lorsgfgc],
.components-reconnect-failed-visible[b-m5lorsgfgc],
.components-pause-visible[b-m5lorsgfgc],
.components-resume-failed-visible[b-m5lorsgfgc],
.components-rejoining-animation[b-m5lorsgfgc] {
    display: none;
}

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


#components-reconnect-modal[b-m5lorsgfgc] {
    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-m5lorsgfgc 0.5s both;
    &[open]

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

}

#components-reconnect-modal[b-m5lorsgfgc]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-m5lorsgfgc 0.5s ease-in-out;
    opacity: 1;
}

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

#components-reconnect-modal p[b-m5lorsgfgc] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-m5lorsgfgc] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-m5lorsgfgc] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-m5lorsgfgc] {
        background-color: #6b9ed2;
    }

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

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

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

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