﻿/* Full-screen overlay with a light dimming effect */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* When body has .loading class, show the overlay */
body.loading #overlay {
    display: block;
    opacity: 1;
}

/* Center the SVG spinner */
#loadingSpinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

/* Prevent interaction with page during loading */
body.loading *:not(#overlay):not(#loadingSpinner) {
    pointer-events: none;
}

/* Spinner style */
svg circle {
    stroke: #28a745;
    stroke-width: 4;
}
