/* /Components/Layout/Footer.razor.rz.scp.css */
/* /Components/Layout/HeaderSidebar.razor.rz.scp.css */
/* /Components/Layout/MainLayout.razor.rz.scp.css */

#blazor-error-ui[b-uqoohui3g6] {
    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-uqoohui3g6] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-tb6yot9twh],
.components-reconnect-repeated-attempt-visible[b-tb6yot9twh],
.components-reconnect-failed-visible[b-tb6yot9twh],
.components-pause-visible[b-tb6yot9twh],
.components-resume-failed-visible[b-tb6yot9twh],
.components-rejoining-animation[b-tb6yot9twh] {
    display: none;
}

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


#components-reconnect-modal[b-tb6yot9twh] {
    background-color: var(--card);
    color: var(--card-foreground);
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-tb6yot9twh 0.5s both;

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

}

#components-reconnect-modal[b-tb6yot9twh]::backdrop {
    background-color: color-mix(in srgb, var(--background) 55%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: components-reconnect-modal-fadeInOpacity-b-tb6yot9twh 0.5s ease-in-out;
    opacity: 1;
}

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

#components-reconnect-modal .halo-reconnect-description[b-tb6yot9twh] {
    margin-top: 0.375rem;
}

/* BB dialog-look interior (#320): every reconnect state renders a centred
   title + muted description, failed/paused states add an accent icon, and the
   actions ride BbButton. All colour resolves from the halo.css token layer so
   the modal flips with .dark (see #311); no hardcoded palette may appear here. */
.halo-reconnect-state[b-tb6yot9twh] {
    width: 100%;
    text-align: center;
}

.halo-reconnect-title[b-tb6yot9twh] {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--card-foreground);
}

.halo-reconnect-description[b-tb6yot9twh] {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--muted-foreground);
}

.halo-reconnect-icon[b-tb6yot9twh] {
    display: flex;
    justify-content: center;
    color: var(--primary);
}

.halo-reconnect-actions[b-tb6yot9twh] {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

/* The Retry/Reload actions are shared by the retrying and failed states (the
   framework toggles those classes on the dialog itself), so they live outside
   the per-state blocks and follow both — mirroring halo-reconnect-resume-actions. */
#components-reconnect-modal.components-reconnect-retrying .halo-reconnect-actions[b-tb6yot9twh],
#components-reconnect-modal.components-reconnect-failed .halo-reconnect-actions[b-tb6yot9twh] {
    display: flex;
}

/* The Resume action is shared by the paused and resume-failed states (the
   framework toggles those classes on the dialog itself), so it lives outside
   the per-state blocks and follows both. */
.halo-reconnect-resume-actions[b-tb6yot9twh] {
    display: none;
    justify-content: center;
    margin-top: 1rem;
}

#components-reconnect-modal.components-reconnect-paused .halo-reconnect-resume-actions[b-tb6yot9twh],
#components-reconnect-modal.components-reconnect-resume-failed .halo-reconnect-resume-actions[b-tb6yot9twh] {
    display: flex;
}

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

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

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

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