/* TP433 Q285-A — while the admin's connection to its server is down: a spinner over the page, no words (Blazor's
   "Rejoining the server" box is replaced; fc-reconnect.js reloads the page when the server no longer holds it).
   Blazor sets these classes on #components-reconnect-modal. The spinner fades in after half a second, so a brief blip
   never flashes it. Theme colours only. */
#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--rz-body-background-color) 55%, transparent);
    backdrop-filter: blur(1px);
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-paused {
    display: flex;
    animation: fc-reconnect-in 0.2s ease 0.5s both;
}

#components-reconnect-modal.components-reconnect-hide {
    display: none;
}

.fc-reconnect__spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid var(--adm-line);
    border-top-color: var(--rz-primary);
    animation: fc-reconnect-spin 0.9s linear infinite;
}

.fc-reconnect__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@keyframes fc-reconnect-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (prefers-reduced-motion: reduce) {
    .fc-reconnect__spinner { animation-duration: 2.4s; }
}
