/* Module preload (Layout/PreloadPanel.razor, Layout/PreloadFooterBar.razor). */

.nx-preload-panel, .nx-preload-footer, .nx-preload-panel *, .nx-preload-footer * { box-sizing: border-box; }

/* Same look as the sign-out panel (nexOneShellOverlay in js/nexone-host.js): navy, pulsing NexOne logo. */
.nx-preload-panel {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 24px;
    background: rgba(30, 40, 70, 0.96);
    animation: nx-preload-in 0.15s ease-out;
}

.nx-preload-logo { width: 72px; height: auto; animation: nx-preload-pulse 1.2s ease-in-out infinite; }

@keyframes nx-preload-pulse {
    0%, 100% { opacity: 0.35; transform: scale(0.94); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes nx-preload-in { from { opacity: 0; } to { opacity: 1; } }

/* One block per module on a single row, at most about four times as wide as the logo (72px): with many modules the
   blocks get narrower instead of stretching the bar across the page. Sized to be read at a glance, also on a phone. */
.nx-preload-blocks { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: center; width: min(300px, 86vw); }
.nx-preload-block { flex: 0 1 20px; min-width: 4px; height: 10px; border-radius: 4px; transition: background 0.35s; }

/* Bottom of the page while the preload goes on in the background: blocks only. */
.nx-preload-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    gap: 3px;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid #e5e7eb;
    pointer-events: none;
}

.nx-preload-footer span { flex: 1; min-width: 0; height: 5px; border-radius: 3px; transition: background 0.35s; }
