/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-l050cr80ul] {
    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-l050cr80ul] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-s3k4i5lgds],
.components-reconnect-repeated-attempt-visible[b-s3k4i5lgds],
.components-reconnect-failed-visible[b-s3k4i5lgds],
.components-pause-visible[b-s3k4i5lgds],
.components-resume-failed-visible[b-s3k4i5lgds],
.components-rejoining-animation[b-s3k4i5lgds] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-s3k4i5lgds],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-s3k4i5lgds],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-s3k4i5lgds],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-s3k4i5lgds],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-s3k4i5lgds],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-s3k4i5lgds],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-s3k4i5lgds] {
    display: block;
}

/* When retrying, hide the first-attempt copy (both classes can coexist on the dialog). */
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-first-attempt-visible[b-s3k4i5lgds] {
    display: none;
}

#components-reconnect-modal.components-reconnect-paused .components-reconnect-primary-btn.components-pause-visible[b-s3k4i5lgds],
#components-reconnect-modal.components-reconnect-resume-failed .components-reconnect-primary-btn.components-resume-failed-visible[b-s3k4i5lgds],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-primary-btn.components-reconnect-failed-visible[b-s3k4i5lgds] {
    display: inline-flex;
}

#components-reconnect-modal[b-s3k4i5lgds] {
    background-color: #fff;
    color: #0B3A4A;
    width: min(22rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    margin: 18vh auto;
    padding: 1.6rem 1.4rem;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgb(11 58 74 / .18);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-s3k4i5lgds 0.5s both;
}

#components-reconnect-modal[open][b-s3k4i5lgds] {
    animation: components-reconnect-modal-slideUp-b-s3k4i5lgds 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-s3k4i5lgds 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-s3k4i5lgds]::backdrop {
    background-color: rgb(11 58 74 / .45);
    animation: components-reconnect-modal-fadeInOpacity-b-s3k4i5lgds 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-s3k4i5lgds {
    0% { transform: translateY(30px) scale(0.95); }
    100% { transform: translateY(0); }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-s3k4i5lgds {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-s3k4i5lgds {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.components-reconnect-container[b-s3k4i5lgds] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
}

.components-reconnect-title[b-s3k4i5lgds] {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    text-align: center;
    color: #0B3A4A;
    font-weight: 700;
}

#components-reconnect-modal p[b-s3k4i5lgds] {
    margin: 0;
    text-align: center;
    color: #475569;
    font-size: .95rem;
    line-height: 1.45;
}

#components-seconds-to-next-attempt[b-s3k4i5lgds] {
    font-weight: 700;
    color: #0B3A4A;
}

.components-reconnect-success[b-s3k4i5lgds] {
    margin: 0;
    padding: .55rem .8rem;
    border-radius: 10px;
    background: #E8F6F0;
    color: #145A48;
    font-weight: 650;
    text-align: center;
}

.components-reconnect-primary-btn[b-s3k4i5lgds] {
    border: 0;
    background-color: #1B7A57;
    color: #fff;
    padding: .65rem 1.2rem;
    border-radius: 10px;
    font: inherit;
    font-weight: 650;
    min-height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.components-reconnect-primary-btn:hover[b-s3k4i5lgds] {
    background-color: #166648;
}

.components-reconnect-primary-btn:focus-visible[b-s3k4i5lgds] {
    outline: 2px solid #E67E22;
    outline-offset: 2px;
}

.components-reconnect-primary-btn:active[b-s3k4i5lgds] {
    background-color: #1B7A57;
}

.components-rejoining-animation[b-s3k4i5lgds] {
    position: relative;
    width: 72px;
    height: 72px;
}

.components-rejoining-animation div[b-s3k4i5lgds] {
    position: absolute;
    border: 3px solid #1B7A57;
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-s3k4i5lgds 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-s3k4i5lgds] {
    animation-delay: -0.5s;
    border-color: #E67E22;
}

@keyframes components-rejoining-animation-b-s3k4i5lgds {
    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;
    }
}

@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[b-s3k4i5lgds],
    #components-reconnect-modal[open][b-s3k4i5lgds],
    #components-reconnect-modal[b-s3k4i5lgds]::backdrop,
    .components-rejoining-animation div[b-s3k4i5lgds] {
        animation: none !important;
    }

    #components-reconnect-modal[open][b-s3k4i5lgds] {
        opacity: 1;
    }
}
