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

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

/* The card's surface, border and corners come from app.css (card, iron-corners); this only
   places the dialog and animates it in. */
#components-reconnect-modal[b-g9mekuspe8] {
    width: min(20rem, calc(100vw - 2rem));
    margin: 20vh auto;
    padding: 1.75rem 2rem;
    color: inherit;
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-g9mekuspe8 0.5s both;

    /* showModal() focuses the dialog itself, which drew the accent focus ring round the card. */
    &:focus-visible {
        outline: none;
    }

    &[open][b-g9mekuspe8] {
        animation: components-reconnect-modal-slideUp-b-g9mekuspe8 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-g9mekuspe8 0.5s ease-in-out 0.3s;
        animation-fill-mode: both;
    }
}

/* The same dimmed, faintly blurred backdrop as the panel's own Modal. */
#components-reconnect-modal[b-g9mekuspe8]::backdrop {
    background-color: rgb(18 14 11 / 0.5);
    backdrop-filter: blur(2px);
    animation: components-reconnect-modal-fadeInOpacity-b-g9mekuspe8 0.5s ease-in-out;
    opacity: 1;
}

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

@keyframes components-reconnect-modal-fadeInOpacity-b-g9mekuspe8 {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-g9mekuspe8 {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

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

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

#components-reconnect-modal button[b-g9mekuspe8] {
    width: 100%;
}
