/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff; /* White background */
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease; /* Smooth transition for fallback */
}

/* Hidden class triggers fade-out animation */
.loader-overlay.hidden {
    animation: fadeOut 0.5s forwards; /* Fade out smoothly */
    pointer-events: none; /* Prevent interactions */
}

/* FadeOut animation keyframes */
@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Dots animation remains the same */
.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0aad0a;
    animation: bounce 1.2s infinite ease-in-out;
}

.dot:nth-child(1) {
    animation-delay: -0.4s;
}

.dot:nth-child(2) {
    animation-delay: -0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes bounce {
    0%,
    100% {
        transform: scale(0);
    }

    50% {
        transform: scale(1);
    }
}
