/* Site Loader Styles */
.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out; /* Faster fade out */
}

.site-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader-logo {
    width: 75px;
    height: 62px;
    animation: logoFadeIn 0.5s ease-in-out; /* Faster logo animation */
}

/* Custom Pagination Loader */
.pagination-loader {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    /* border-radius: 50%; */
    background-color: #e5e7eb;
    position: relative;
    overflow: hidden;
    animation: dotPulse 1s ease-in-out infinite; /* Faster pulse */
}

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

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

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

.pagination-dot:nth-child(4) {
    animation-delay: 0.3s;
}

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

/* Fill animation for dots */
.pagination-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #002D72;
    /* border-radius: 50%; */
    transition: left 0.15s ease-in-out; /* Faster fill */
}

.pagination-dot.active::before {
    left: 0;
}

/* Logo fade in animation */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dot pulse animation */
@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Progressive fill animation */
@keyframes progressiveFill {
    0% {
        left: -100%;
    }
    100% {
        left: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .loader-logo {
        width: 50px;
        height: 41px;
    }
    
    .pagination-dot {
        width: 10px;
        height: 10px;
    }
    
    .pagination-loader {
        gap: 6px;
    }
    
    .loader-content {
        gap: 25px;
    }
}

/* Hide body scroll when loader is active */
/* Commented out to prevent page shift when loader completes
body.loader-active {
    overflow: hidden;
}
*/
