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

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

/* A small card at the top of the page, in the site's colours. It fades in after 1.5 s, so a short network blip
   shows nothing at all. */
#components-reconnect-modal[b-o287lgdv53] {
    border: 0;
    padding: 0;
    margin: 24px auto auto;
    max-width: calc(100vw - 32px);
    width: 420px;
    background: transparent;
    font-family: Inter, system-ui, sans-serif;
    opacity: 0;
    /* showModal() focuses the dialog itself; its square focus ring framed the rounded card. */
    outline: none;
}

#components-reconnect-modal[open][b-o287lgdv53] {
    animation: reconnect-in-b-o287lgdv53 0.4s ease-out 1.5s both;
}

#components-reconnect-modal[b-o287lgdv53]::backdrop {
    background: rgba(250, 250, 252, 0);
    animation: reconnect-backdrop-b-o287lgdv53 0.4s ease-out 1.5s both;
}

.reconnect-card[b-o287lgdv53] {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #E2E6EC;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(19, 41, 75, 0.14);
    padding: 18px 20px;
}

.reconnect-mark[b-o287lgdv53] {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 10px;
    background: #13294B;
    color: #5FD3B5;
    font-size: 20px;
    font-weight: 700;
}

.reconnect-text[b-o287lgdv53] {
    flex: 1 1 auto;
}

.reconnect-title[b-o287lgdv53] {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1A2230;
}

.reconnect-detail[b-o287lgdv53] {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #555;
}

/* An endless thin progress line: something is happening. */
.reconnect-bar[b-o287lgdv53] {
    position: relative;
    height: 4px;
    margin-top: 12px;
    border-radius: 2px;
    background: #EEF2F7;
    overflow: hidden;
}

.reconnect-bar span[b-o287lgdv53] {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    border-radius: 2px;
    background: #13294B;
    animation: reconnect-slide-b-o287lgdv53 1.2s ease-in-out infinite;
}

/* With the id: MudBlazor's "#components-reconnect-modal button" (grey, uppercase) would win over a class alone. */
#components-reconnect-modal .reconnect-button[b-o287lgdv53] {
    margin-top: 12px;
    border: 0;
    border-radius: 8px;
    padding: 8px 16px;
    background: #13294B;
    color: #fff;
    text-transform: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#components-reconnect-modal .reconnect-button:hover[b-o287lgdv53] {
    background: #2E22A0;
}

@keyframes reconnect-in-b-o287lgdv53 {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes reconnect-backdrop-b-o287lgdv53 {
    to { background: rgba(250, 250, 252, 0.55); }
}

@keyframes reconnect-slide-b-o287lgdv53 {
    from { left: -40%; }
    to { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .reconnect-bar span[b-o287lgdv53] { animation: none; left: 0; width: 100%; opacity: 0.4; }
}
