/* css/loaderStyle.css */

body.loading {
    overflow: hidden; /* Prevent scrolling while loader is active */
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Full white background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of everything */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s; /* Delay visibility change */
}

/* Concentric Rings Spinner Styles */
.concentric-rings-spinner {
    position: relative;
    width: 60px; /* Overall size of the spinner */
    height: 60px;
    display: flex; /* Using flex to center if needed, though absolute positioning handles it */
    justify-content: center;
    align-items: center;
}

.concentric-rings-spinner .ring {
    position: absolute; /* Position rings on top of each other */
    border-style: solid;
    /* Color the top part of the border, rest is transparent for the spinning arc effect */
    border-color: #00796B transparent transparent transparent; /* Primary color */
    border-radius: 50%;
    animation: concentricRingSpin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.concentric-rings-spinner .ring:nth-child(1) {
    width: 60px; /* Outermost ring */
    height: 60px;
    border-width: 2px; /* Thin ring */
    animation-delay: -0.45s;
}

.concentric-rings-spinner .ring:nth-child(2) {
    width: 50px; /* Middle ring */
    height: 50px;
    border-width: 2px; /* Thin ring */
    animation-delay: -0.3s;
}

.concentric-rings-spinner .ring:nth-child(3) {
    width: 40px; /* Innermost ring */
    height: 40px;
    border-width: 2px; /* Thin ring */
    animation-delay: -0.15s;
}

/* Keyframes for the spinning animation of the rings */
@keyframes concentricRingSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Styles for content-wrapper to ensure sticky footer and loading logic work */
#content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content-wrapper to fill space in body's flex context */
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Initially hidden */
    transition: opacity 0.5s ease-in 0.3s; /* Fade in after a slight delay */
}

#content-wrapper.visible {
    opacity: 1;
    visibility: visible;
}
