/* Global ajax-busy overlay. Ported verbatim from -NEWUI's classic Web project
   (Content/bms-loading-overlay.css) - see docs/dotnet10-linux-migration-plan.md
   ("UI merge from -NEWUI"). Loaded as a plain <link>, no build step, matching
   this project's existing "no CSS pipeline" convention. */

#bmsLoadingOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    /* Fully transparent (Brad, 2026-08-31: "Can the overlay be 100% transparent just with the
       logo in the middle spinning") - was a translucent rgba(255,255,255,0.6) white wash over
       the whole screen; that dimming read as part of the same "flicker" as the sidebar-lock
       fix above, since it pops in/out on every in-flight fetch(). Only the spinning logo (below)
       still shows. */
    background: transparent;
}

#bmsLoadingOverlay.bms-loading-visible {
    display: flex;
}

#bmsLoadingOverlay img {
    width: 72px;
    height: 72px;
    animation: bms-loading-spin 1.1s linear infinite;
}

@keyframes bms-loading-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #bmsLoadingOverlay img {
        animation-duration: 3s;
    }
}
