#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 22, 40, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease;
    opacity: 0;
}

#loading-overlay.active {
    display: flex;
    opacity: 1;
}

/* The spinning circle */
.spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Make the default Dash loading text invisible */
#_dash-loading {
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}
