﻿#app-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000; /* higher than Bootstrap modals */
    background: rgba(0, 0, 0, 0.6);
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: all; /* block interaction */
}


    #app-loading-overlay.active {
        display: flex;
    }


/* Prevent text selection / interaction */
body.loading-active {
    overflow: hidden;
    touch-action: none;
}


/* Optional: smooth fade in/out */
#app-loading-overlay {
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
}


#app-loading-overlay.active {
        opacity: 1;
}
