/* Loading Bar Container */
#loading-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    z-index: 99999;
    pointer-events: none;
    display: none;
}

/* The Loading Bar itself */
#loading-bar {
    width: 0%;
    height: 100%;
    background: #000000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: width 0.2s ease-in-out;
    border-radius: 0 2px 2px 0;
}

/* Spinner centered on screen */
#loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000000;
    border-left-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 99999;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
