/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-cq072nph00] {
    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-cq072nph00] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-kp6fp7c7vs],
.components-reconnect-repeated-attempt-visible[b-kp6fp7c7vs],
.components-reconnect-failed-visible[b-kp6fp7c7vs],
.components-pause-visible[b-kp6fp7c7vs],
.components-resume-failed-visible[b-kp6fp7c7vs],
.components-rejoining-animation[b-kp6fp7c7vs] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-kp6fp7c7vs],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-kp6fp7c7vs],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-kp6fp7c7vs],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-kp6fp7c7vs],
#components-reconnect-modal.components-reconnect-retrying[b-kp6fp7c7vs],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-kp6fp7c7vs],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-kp6fp7c7vs],
#components-reconnect-modal.components-reconnect-failed[b-kp6fp7c7vs],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-kp6fp7c7vs] {
    display: block;
}


#components-reconnect-modal[b-kp6fp7c7vs] {
    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-kp6fp7c7vs 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-kp6fp7c7vs 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-kp6fp7c7vs 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-kp6fp7c7vs]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-kp6fp7c7vs 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-kp6fp7c7vs {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-kp6fp7c7vs {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-kp6fp7c7vs {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-kp6fp7c7vs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-kp6fp7c7vs] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-kp6fp7c7vs] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-kp6fp7c7vs] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-kp6fp7c7vs] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-kp6fp7c7vs] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-kp6fp7c7vs] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-kp6fp7c7vs 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-kp6fp7c7vs] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-kp6fp7c7vs {
    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;
    }
}

/* ── Reconnect modal — Blazor toggles classes on #components-reconnect-modal ── */
#components-reconnect-modal[b-kp6fp7c7vs] {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

    /* While actively attempting to reconnect — toast at bottom */
    #components-reconnect-modal.components-reconnect-show[b-kp6fp7c7vs] {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 28px;
        background-color: #232121;
        pointer-events: none;
    }

    /* Failed / rejected — full overlay, user must reload */
    #components-reconnect-modal.components-reconnect-failed[b-kp6fp7c7vs],
    #components-reconnect-modal.components-reconnect-rejected[b-kp6fp7c7vs] {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(9,9,11,0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        pointer-events: all;
    }

/* Inner content card */
.reconnect-content[b-kp6fp7c7vs] {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(20, 20, 24, 0.9);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 9999px;
    padding: 9px 18px 9px 14px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
    pointer-events: none;
}

/* In failed/rejected state the content becomes a centered dialog-style card */
.components-reconnect-failed .reconnect-content[b-kp6fp7c7vs],
.components-reconnect-rejected .reconnect-content[b-kp6fp7c7vs] {
    border-radius: 18px;
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    pointer-events: all;
}

/* Spinner */
.reconnect-spinner[b-kp6fp7c7vs] {
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    flex-shrink: 0;
    animation: spin 0.75s linear infinite;
}

.components-reconnect-failed .reconnect-spinner[b-kp6fp7c7vs],
.components-reconnect-rejected .reconnect-spinner[b-kp6fp7c7vs] {
    display: none;
}

/* Text container */
.reconnect-text[b-kp6fp7c7vs] {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
}

.components-reconnect-failed .reconnect-text[b-kp6fp7c7vs],
.components-reconnect-rejected .reconnect-text[b-kp6fp7c7vs] {
    white-space: normal;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

/* Show only the right message per state */
.reconnect-show-msg[b-kp6fp7c7vs] {
    display: inline;
}

.reconnect-failed-msg[b-kp6fp7c7vs] {
    display: none;
}

.reconnect-rejected-msg[b-kp6fp7c7vs] {
    display: none;
}

.components-reconnect-show .reconnect-show-msg[b-kp6fp7c7vs] {
    display: inline;
}

.components-reconnect-show .reconnect-failed-msg[b-kp6fp7c7vs] {
    display: none;
}

.components-reconnect-show .reconnect-rejected-msg[b-kp6fp7c7vs] {
    display: none;
}

.components-reconnect-failed .reconnect-show-msg[b-kp6fp7c7vs] {
    display: none;
}

.components-reconnect-failed .reconnect-failed-msg[b-kp6fp7c7vs] {
    display: block;
}

.components-reconnect-failed .reconnect-rejected-msg[b-kp6fp7c7vs] {
    display: none;
}

.components-reconnect-rejected .reconnect-show-msg[b-kp6fp7c7vs] {
    display: none;
}

.components-reconnect-rejected .reconnect-failed-msg[b-kp6fp7c7vs] {
    display: none;
}

.components-reconnect-rejected .reconnect-rejected-msg[b-kp6fp7c7vs] {
    display: block;
}

.reconnect-text a[b-kp6fp7c7vs] {
    color: #a78bfa;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(167,139,250,0.35);
    transition: color 150ms, border-color 150ms;
}

    .reconnect-text a:hover[b-kp6fp7c7vs] {
        color: #c4b5fd;
        border-bottom-color: rgba(196,181,253,0.6);
    }
 
