/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Which message shows in which state. These selectors are driven by the classes the framework adds
   to the dialog, so they are kept exactly as the template supplied them. */
.components-reconnect-first-attempt-visible[b-qxo6emvd9g],
.components-reconnect-repeated-attempt-visible[b-qxo6emvd9g],
.components-reconnect-failed-visible[b-qxo6emvd9g],
.components-pause-visible[b-qxo6emvd9g],
.components-resume-failed-visible[b-qxo6emvd9g],
.components-rejoining-animation[b-qxo6emvd9g] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-qxo6emvd9g],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-qxo6emvd9g],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-qxo6emvd9g],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-qxo6emvd9g],
#components-reconnect-modal.components-reconnect-retrying[b-qxo6emvd9g],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-qxo6emvd9g],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-qxo6emvd9g],
#components-reconnect-modal.components-reconnect-failed[b-qxo6emvd9g],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-qxo6emvd9g] {
    display: block;
}

/* Appearance. Every colour is a design token, so the dialog follows the light and dark themes and a
   licence's brand colour like the rest of the panel. */
#components-reconnect-modal[b-qxo6emvd9g] {
    width: min(30rem, calc(100% - 32px));
    margin: 18vh auto 0;
    padding: 28px;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: display .4s allow-discrete, overlay .4s allow-discrete;
    animation: reconnect-fade-out-b-qxo6emvd9g .4s both;
}

#components-reconnect-modal[open][b-qxo6emvd9g] {
    animation: reconnect-rise-b-qxo6emvd9g .5s cubic-bezier(.2, .9, .3, 1) .2s both, reconnect-fade-in-b-qxo6emvd9g .4s ease-out .2s both;
}

#components-reconnect-modal[b-qxo6emvd9g]::backdrop {
    background: var(--scrim);
    animation: reconnect-fade-in-b-qxo6emvd9g .4s ease-out;
}

.components-reconnect-container[b-qxo6emvd9g] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.reconnect-mark[b-qxo6emvd9g] {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--brand-t);
    color: var(--brand-ink);
}

.reconnect-mark[b-qxo6emvd9g]  .lucide {
    width: 26px;
    height: 26px;
}

h2[b-qxo6emvd9g] {
    margin: 4px 0 0;
    font-size: 19px;
    color: var(--head);
}

p[b-qxo6emvd9g] {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}

.reconnect-note[b-qxo6emvd9g] {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--color-neutral-200);
    color: var(--ink);
    font-size: 13.5px;
}

.reconnect-actions[b-qxo6emvd9g] {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.components-rejoining-animation[b-qxo6emvd9g] {
    position: absolute;
    inset: -8px;
    pointer-events: none;
}

.components-rejoining-animation div[b-qxo6emvd9g] {
    position: absolute;
    inset: 0;
    border: 2px solid var(--brand);
    border-radius: var(--radius-lg);
    opacity: 0;
    animation: reconnect-pulse-b-qxo6emvd9g 1.6s cubic-bezier(0, .2, .8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-qxo6emvd9g] {
    animation-delay: -.8s;
}

@keyframes reconnect-rise-b-qxo6emvd9g {
    from { transform: translateY(24px) scale(.97); }
    to { transform: none; }
}

@keyframes reconnect-fade-in-b-qxo6emvd9g {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes reconnect-fade-out-b-qxo6emvd9g {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes reconnect-pulse-b-qxo6emvd9g {
    0% { transform: scale(.7); opacity: .9; }
    100% { transform: scale(1.25); opacity: 0; }
}
