/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-mb8m8oxl2a] {
    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-mb8m8oxl2a] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ── Visibility state management ── */
.components-reconnect-first-attempt-visible[b-yq5y22k229],
.components-reconnect-repeated-attempt-visible[b-yq5y22k229],
.components-reconnect-failed-visible[b-yq5y22k229],
.components-pause-visible[b-yq5y22k229],
.components-resume-failed-visible[b-yq5y22k229],
.components-rejoining-animation[b-yq5y22k229] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-yq5y22k229],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-yq5y22k229],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-yq5y22k229],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-yq5y22k229],
#components-reconnect-modal.components-reconnect-retrying[b-yq5y22k229],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-yq5y22k229],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-yq5y22k229],
#components-reconnect-modal.components-reconnect-failed[b-yq5y22k229],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-yq5y22k229] {
    display: block;
}

/* ── Dialog shell ── */
#components-reconnect-modal[b-yq5y22k229] {
    background: linear-gradient(145deg, #163a5f 0%, #2b2f33 100%);
    color: #fff;
    width: min(26rem, calc(100vw - 2rem));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 8px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    /* Center in viewport */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95) translateY(20px);
    margin: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-yq5y22k229 0.5s both;

    &[open] {
        animation: components-reconnect-modal-slideUp-b-yq5y22k229 1.4s cubic-bezier(.05, .89, .25, 1.02) 0.2s,
                   components-reconnect-modal-fadeInOpacity-b-yq5y22k229 0.4s ease-in-out 0.2s;
        animation-fill-mode: both;
    }
}

#components-reconnect-modal[b-yq5y22k229]::backdrop {
    background-color: rgba(22, 58, 95, 0.55);
    backdrop-filter: blur(4px);
    animation: components-reconnect-modal-fadeInOpacity-b-yq5y22k229 0.4s ease-in-out;
    opacity: 1;
}

/* ── Animations ── */
@keyframes components-reconnect-modal-slideUp-b-yq5y22k229 {
    0% {
        transform: translate(-50%, calc(-50% + 28px)) scale(0.95);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-yq5y22k229 {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-yq5y22k229 {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

/* ── Layout ── */
.components-reconnect-container[b-yq5y22k229] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2.5rem 2rem;
}

/* ── Brand header ── */
.components-reconnect-brand[b-yq5y22k229] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.25rem;
    width: 100%;
}

.components-reconnect-logo[b-yq5y22k229] {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    line-height: 1;
}

.components-reconnect-tagline[b-yq5y22k229] {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #1f8a8a;
    text-transform: uppercase;
}

/* ── Body text ── */
.components-reconnect-body[b-yq5y22k229] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

#components-reconnect-modal p[b-yq5y22k229] {
    margin: 0;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* ── Buttons ── */
#components-reconnect-modal button[b-yq5y22k229] {
    border: 1px solid #1f8a8a;
    background-color: #1f8a8a;
    color: #fff;
    padding: 0.5rem 1.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    margin-top: 0.25rem;
}

    #components-reconnect-modal button:hover[b-yq5y22k229] {
        background-color: #177070;
        border-color: #177070;
    }

    #components-reconnect-modal button:active[b-yq5y22k229] {
        background-color: #1f8a8a;
    }

/* ── Ring animation ── */
.components-rejoining-animation[b-yq5y22k229] {
    position: relative;
    width: 72px;
    height: 72px;
}

    .components-rejoining-animation div[b-yq5y22k229] {
        position: absolute;
        border: 3px solid #1f8a8a;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-yq5y22k229 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-yq5y22k229] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-yq5y22k229 {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0;
        left: 0;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}
