/* Loading Overlay Styles - loading.css */

/* Full-screen overlay to cover content */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    display: flex; /* Use flexbox for centering content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 9999; /* Ensure it's on top of everything */
    visibility: hidden; /* Hidden by default */
    opacity: 0; /* Start fully transparent */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth fade in/out */
}

/* Show state */
.loading-overlay.show {
    visibility: visible;
    opacity: 1;
}

/* Spinner animation */
.spinner {
    border: 8px solid #f3f3f3; /* Light grey border */
    border-top: 8px solid var(--primary-color); /* Green spinner top */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite; /* Spin animation */
}

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