#loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    /* Semi-transparent background */
    z-index: 9999;
    /* Ensure it's on top of other elements */
}

.spinner {
    position: absolute;
    top: calc(50vh - 32px);
    ;
    left: calc(50vw - 32px);
    ;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #9c27b0;
    animation: spin 1s ease-in-out infinite;
}

#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

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

.spinner-border-lg {
    width: 4rem;
    height: 4rem;
    border-width: 0.5rem;
}

.blurred {
    filter: blur(4px);
    pointer-events: none;
}

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

    100% {
        transform: rotate(360deg);
    }
}