/* Slim top-of-page progress bar shown while the server is rendering the next page.
   Pinned to the viewport so it sits above the layout chrome and on top of modals. */
#nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 150ms ease-out;
}

#nav-progress.active {
    opacity: 1;
}

/* The moving segment is a gradient that loops across the full width, giving a lightweight
   "indeterminate" feel without needing a concrete progress value. */
#nav-progress::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #2563eb 50%, transparent);
    animation: nav-progress-slide 1.1s ease-in-out infinite;
}

@keyframes nav-progress-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}
