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

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Only the block of the current state shows; Blazor sets the state class on the dialog. */
.reconnect-state[b-fzjz233xeu],
.components-reconnect-first-attempt-visible[b-fzjz233xeu],
.components-reconnect-repeated-attempt-visible[b-fzjz233xeu],
.components-pause-visible[b-fzjz233xeu],
.components-resume-failed-visible[b-fzjz233xeu] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .reconnect-state--connecting[b-fzjz233xeu],
#components-reconnect-modal.components-reconnect-retrying .reconnect-state--connecting[b-fzjz233xeu],
#components-reconnect-modal.components-reconnect-failed .reconnect-state--failed[b-fzjz233xeu],
#components-reconnect-modal.components-reconnect-paused .reconnect-state--paused[b-fzjz233xeu],
#components-reconnect-modal.components-reconnect-resume-failed .reconnect-state--paused[b-fzjz233xeu] {
    display: grid;
}

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

#components-reconnect-modal.components-reconnect-paused .reconnect-button.components-pause-visible[b-fzjz233xeu] {
    display: inline-flex;
}

#components-reconnect-modal[b-fzjz233xeu] {
    width: min(440px, calc(100vw - 32px));
    margin: 18vh auto 0;
    padding: 0;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 16px;
    background: var(--color-surface, #fff);
    color: var(--color-text, #111827);
    box-shadow: 0 20px 50px rgb(0 0 0 / 0.25);
    opacity: 0;
    transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete;
    animation: reconnect-fade-out-b-fzjz233xeu 0.3s both;
}

#components-reconnect-modal[open][b-fzjz233xeu] {
    animation: reconnect-slide-up-b-fzjz233xeu 0.4s cubic-bezier(.2, .8, .2, 1) 0.2s both, reconnect-fade-in-b-fzjz233xeu 0.3s ease-out 0.2s both;
}

#components-reconnect-modal[b-fzjz233xeu]::backdrop {
    background: rgb(17 24 39 / 0.45);
    backdrop-filter: blur(2px);
    animation: reconnect-fade-in-b-fzjz233xeu 0.3s ease-out;
}

.reconnect-card[b-fzjz233xeu] {
    padding: 28px 28px 24px;
}

.reconnect-state[b-fzjz233xeu] {
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.reconnect-icon[b-fzjz233xeu] {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent-soft, #edf6fc);
    color: var(--color-accent, #0078d4);
    font-weight: 800;
    font-size: 1.3rem;
}

.reconnect-icon--warning[b-fzjz233xeu] {
    background: #fef3c7;
    color: #b45309;
}

.reconnect-spinner[b-fzjz233xeu] {
    width: 26px;
    height: 26px;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: reconnect-spin-b-fzjz233xeu 0.9s linear infinite;
}

.reconnect-title[b-fzjz233xeu] {
    margin: 4px 0 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.reconnect-text[b-fzjz233xeu] {
    margin: 0;
    color: var(--color-muted, #626b78);
    line-height: 1.5;
}

.reconnect-status[b-fzjz233xeu] {
    margin: 4px 0 0;
    font-weight: 600;
}

/* A thin bar moving while it connects: something is happening, without a fake percentage. */
.reconnect-progress[b-fzjz233xeu] {
    position: relative;
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--color-border, #e5e7eb);
}

.reconnect-progress span[b-fzjz233xeu] {
    position: absolute;
    inset: 0 auto 0 0;
    width: 35%;
    border-radius: 2px;
    background: var(--color-accent, #0078d4);
    animation: reconnect-indeterminate-b-fzjz233xeu 1.4s ease-in-out infinite;
}

.reconnect-actions[b-fzjz233xeu] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.reconnect-button[b-fzjz233xeu] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--color-control-border, #8994a3);
    border-radius: 8px;
    background: var(--color-surface, #fff);
    color: var(--color-text, #111827);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.reconnect-button:hover[b-fzjz233xeu] {
    background: var(--color-surface-hover, #f9fafb);
}

.reconnect-button--primary[b-fzjz233xeu] {
    border-color: var(--color-accent, #0078d4);
    background: var(--color-accent, #0078d4);
    color: #fff;
}

.reconnect-button--primary:hover[b-fzjz233xeu] {
    background: var(--color-accent-hover, #106ebe);
}

.reconnect-button:focus-visible[b-fzjz233xeu] {
    outline: 2px solid var(--color-accent, #0078d4);
    outline-offset: 2px;
}

@keyframes reconnect-spin-b-fzjz233xeu {
    to { transform: rotate(360deg); }
}

@keyframes reconnect-indeterminate-b-fzjz233xeu {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

@keyframes reconnect-slide-up-b-fzjz233xeu {
    from { transform: translateY(16px) scale(0.98); }
    to { transform: none; }
}

@keyframes reconnect-fade-in-b-fzjz233xeu {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes reconnect-fade-out-b-fzjz233xeu {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .reconnect-spinner[b-fzjz233xeu],
    .reconnect-progress span[b-fzjz233xeu],
    #components-reconnect-modal[b-fzjz233xeu],
    #components-reconnect-modal[open][b-fzjz233xeu] {
        animation: none;
        opacity: 1;
    }
}
