
#loading-bar::before { /* pseudo-element = full overlay   */
    content: '';
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: rgba(0,0,0,.25); /* dim the page                    */
    pointer-events: all; /* intercept interaction           */
    cursor: wait; /* busy cursor                     */
    z-index: 10001; /* below bar/spinner, above page   */
}

/* Make sure the wrapper itself doesn’t re-enable clicks accidentally */
#loading-bar,
#loading-bar-spinner {
    pointer-events: none; /* real blocking is on ::before    */
}

    #loading-bar .bar {
        transition: none !important; /* kill progress width transition  */
        position: fixed;
        top: 0;
        left: 0;
        height: 2px;
        background: #29d;
        z-index: 10002; /* above backdrop                  */
        animation: indeterminate 2s cubic-bezier(.4,0,.2,1) infinite;
    }

    /* Optional: hide the little glow “peg” */
    #loading-bar .peg {
        display: none !important;
    }

/* Key-frames for the endless slide                                          */
@keyframes indeterminate {
    0% {
        left: -30%;
        width: 30%;
    }

    50% {
        left: 35%;
        width: 30%;
    }

    100% {
        left: 100%;
        width: 30%;
    }
}
