/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Shown by Blazor while the live connection to the server is down. Themed like the app's dialogs. */
.components-reconnect-first-attempt-visible[b-oe5p0a9a8u],
.components-reconnect-repeated-attempt-visible[b-oe5p0a9a8u],
.components-reconnect-failed-visible[b-oe5p0a9a8u],
.components-pause-visible[b-oe5p0a9a8u],
.components-resume-failed-visible[b-oe5p0a9a8u],
.components-rejoining-animation[b-oe5p0a9a8u] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-oe5p0a9a8u],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-oe5p0a9a8u],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-oe5p0a9a8u],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-oe5p0a9a8u],
#components-reconnect-modal.components-reconnect-retrying[b-oe5p0a9a8u],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-oe5p0a9a8u],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-oe5p0a9a8u],
#components-reconnect-modal.components-reconnect-failed[b-oe5p0a9a8u],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-oe5p0a9a8u] {
    display: block;
}

#components-reconnect-modal[b-oe5p0a9a8u] {
    width: 20rem;
    margin: 20vh auto;
    padding: 24px;
    color: var(--fg);
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    border-radius: var(--r-16);
    box-shadow: var(--shadow-dialog);
    font-family: var(--f-ui);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fade-out-b-oe5p0a9a8u 0.5s both;
}

#components-reconnect-modal[open][b-oe5p0a9a8u] {
    animation: components-reconnect-modal-slide-up-b-oe5p0a9a8u 0.6s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fade-in-b-oe5p0a9a8u 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-oe5p0a9a8u]::backdrop {
    background: var(--scrim);
    backdrop-filter: blur(4px);
}

.components-reconnect-container[b-oe5p0a9a8u] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

#components-reconnect-modal p[b-oe5p0a9a8u] {
    margin: 0;
    text-align: center;
    font-size: var(--fs-13);
    color: var(--fg-2);
    line-height: 1.5;
}

#components-reconnect-modal button[b-oe5p0a9a8u] {
    height: 32px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--r-9);
    background: var(--accent);
    color: var(--fg-on-accent);
    font-weight: 600;
    cursor: pointer;
}

#components-reconnect-modal button:hover[b-oe5p0a9a8u] {
    filter: brightness(1.08);
}

.components-rejoining-animation[b-oe5p0a9a8u] {
    position: relative;
    width: 64px;
    height: 64px;
}

.components-rejoining-animation div[b-oe5p0a9a8u] {
    position: absolute;
    border: 3px solid var(--accent);
    border-radius: var(--r-round);
    animation: components-rejoining-b-oe5p0a9a8u 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-oe5p0a9a8u] {
    border-color: var(--accent-2);
    animation-delay: -0.5s;
}

@keyframes components-reconnect-modal-slide-up-b-oe5p0a9a8u {
    0% { transform: translateY(30px) scale(0.95); }
    100% { transform: translateY(0); }
}

@keyframes components-reconnect-modal-fade-in-b-oe5p0a9a8u {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes components-reconnect-modal-fade-out-b-oe5p0a9a8u {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes components-rejoining-b-oe5p0a9a8u {
    0%, 4.9% { top: 32px; left: 32px; width: 0; height: 0; opacity: 0; }
    5% { top: 32px; left: 32px; width: 0; height: 0; opacity: 1; }
    100% { top: 0; left: 0; width: 64px; height: 64px; opacity: 0; }
}
