/* Overlay for Spinner */
.spinner-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background */
    z-index: 1000; /* Ensure it appears above all other elements */
    display: flex; /* Enable flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

/* Spinner Animation */
.spinner {
    width: 40px; /* Size of the spinner */
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.6); /* Semi-transparent border */
    border-top: 4px solid #ffffff; /* Solid white top border for effect */
    border-radius: 50%; /* Circle shape */
    animation: spin 1s linear infinite; /* Continuous rotation */
}

/* Keyframes for Spinner Rotation */
@keyframes spin {
    0% {
        transform: rotate(0deg); /* Starting point */
    }
    100% {
        transform: rotate(360deg); /* Full rotation */
    }
}
