/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Which text shows comes from the state class Blazor sets on the dialog. */
.components-reconnect-first-attempt-visible[b-wf88vyl8zv],
.components-reconnect-repeated-attempt-visible[b-wf88vyl8zv],
.components-reconnect-failed-visible[b-wf88vyl8zv],
.components-pause-visible[b-wf88vyl8zv],
.components-resume-failed-visible[b-wf88vyl8zv],
.components-rejoining-animation[b-wf88vyl8zv] {
    display: none;
}

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

/* While reconnecting: a small, non-blocking pill at the top. */
#components-reconnect-modal[b-wf88vyl8zv] {
    position: fixed; inset: calc(env(safe-area-inset-top, 0px) + 12px) 0 auto 0; margin: 0 auto;
    width: max-content; max-width: calc(100vw - 32px); padding: 10px 16px; border: 0; border-radius: 999px;
    background: var(--bg-elevated, #fff); color: var(--text, #123); box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
    font-size: .9rem; font-weight: 600; z-index: 100;
    animation: reconnect-in-b-wf88vyl8zv 240ms ease both;
}
/* A lost session (opened as a modal): a small centred card with the button. */
#components-reconnect-modal:modal[b-wf88vyl8zv] {
    inset: 0; margin: auto; height: max-content; border-radius: 20px; padding: 20px 24px; max-width: min(20rem, calc(100vw - 32px));
}
#components-reconnect-modal:focus[b-wf88vyl8zv] { outline: none; }
#components-reconnect-modal[b-wf88vyl8zv]::backdrop { background: var(--scrim, rgba(0, 0, 0, .4)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.components-reconnect-container[b-wf88vyl8zv] { display: flex; align-items: center; gap: 10px; }
#components-reconnect-modal:modal .components-reconnect-container[b-wf88vyl8zv] { flex-direction: column; gap: 14px; text-align: center; }

#components-reconnect-modal p[b-wf88vyl8zv] { margin: 0; }

#components-reconnect-modal button[b-wf88vyl8zv] {
    border: 0; border-radius: 999px; padding: 10px 22px; font: inherit; font-weight: 700; cursor: pointer;
    background: var(--accent, #087aa2); color: var(--text-on-accent, #fff);
}
#components-reconnect-modal button:hover[b-wf88vyl8zv] { background: var(--accent-hover, #066384); }

.components-rejoining-animation[b-wf88vyl8zv] {
    width: 16px; height: 16px; border-radius: 50%; flex: none;
    border: 2.5px solid color-mix(in srgb, var(--accent, #087aa2) 25%, transparent); border-top-color: var(--accent, #087aa2);
    animation: reconnect-spin-b-wf88vyl8zv .8s linear infinite;
}

@keyframes reconnect-spin-b-wf88vyl8zv { to { transform: rotate(360deg); } }
@keyframes reconnect-in-b-wf88vyl8zv { from { opacity: 0; transform: translateY(-8px); } }
