#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* semi-transparent white overlay */
    z-index: 9999; /* ensure it's on top of everything */
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3); /* light border for the spinner */
    border-radius: 50%;
    border-top: 4px solid #3498db; /* blue color for the spinner */
    width: 40px;
    height: 40px;
    margin: 15% auto; /* center the spinner vertically */
    animation: spin 1s linear infinite; /* rotation animation */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
