@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.boiwgh0w5b.bundle.scp.css';

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* The framework toggles these classes on the dialog; each state shows one message. */
.components-reconnect-first-attempt-visible[b-xq9snpen0d],
.components-reconnect-repeated-attempt-visible[b-xq9snpen0d],
.components-reconnect-failed-visible[b-xq9snpen0d],
.components-pause-visible[b-xq9snpen0d],
.components-resume-failed-visible[b-xq9snpen0d],
.components-rejoining-animation[b-xq9snpen0d] {
    display: none;
}

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

#components-reconnect-modal[b-xq9snpen0d] {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border-radius: var(--r-2);
    box-shadow: var(--shadow-2);
    opacity: 0;
    animation: components-reconnect-modal-fade-out-b-xq9snpen0d 0.5s both;
}

#components-reconnect-modal[open][b-xq9snpen0d] {
    animation:
        components-reconnect-modal-slide-up-b-xq9snpen0d 1.5s cubic-bezier(0.05, 0.89, 0.25, 1.02) 0.3s,
        components-reconnect-modal-fade-in-b-xq9snpen0d 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-xq9snpen0d]::backdrop {
    background-color: rgb(0 0 0 / 0.4);
    animation: components-reconnect-modal-fade-in-b-xq9snpen0d 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slide-up-b-xq9snpen0d {
    0% { transform: translateY(30px) scale(0.95); }
    100% { transform: translateY(0); }
}

@keyframes components-reconnect-modal-fade-in-b-xq9snpen0d {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes components-reconnect-modal-fade-out-b-xq9snpen0d {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

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

#components-reconnect-modal p[b-xq9snpen0d] {
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
}

#components-reconnect-modal button[b-xq9snpen0d] {
    border: 0;
    background-color: var(--accent);
    color: var(--accent-contrast);
    padding: 0.3rem 1.5rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    cursor: pointer;
}

#components-reconnect-modal button:hover[b-xq9snpen0d] {
    background-color: var(--accent-strong);
}

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

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

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

@keyframes components-rejoining-animation-b-xq9snpen0d {
    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: 0;    left: 0;    width: 80px; height: 80px; opacity: 0; }
}
