﻿.loader-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 99999;
}

.loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    font-size: 0;
    color: #00c9d0;
    display: inline-block;
    margin: -25px 0 0 -25px;
    text-indent: -9999em;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

    .loader div {
        background-color: #00c9d0;
        display: inline-block;
        float: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 50px;
        height: 50px;
        opacity: 0.5;
        border-radius: 50%;
        -webkit-animation: ballPulseDouble 2s ease-in-out infinite;
        animation: ballPulseDouble 2s ease-in-out infinite;
    }

        .loader div:last-child {
            -webkit-animation-delay: -1s;
            animation-delay: -1s;
        }

@-webkit-keyframes ballPulseDouble {
    0%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    50% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes ballPulseDouble {
    0%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    50% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

::-webkit-scrollbar {
    width: 2px !important;
}

/* Determinate splash screen progress bar (byte-level) */
.loader-progress {
    width: clamp(160px, 40vmin, 520px);
    height: 6px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    overflow: hidden;
    margin: 20px auto 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05) inset;
}

    .loader-progress .loader-bar {
        width: 0%;
        height: 100%;
        background-image: linear-gradient(90deg, #ffffff, #e3f2fd);
        border-radius: inherit;
        transition: none; /* animation is handled in JS smoothing */
    }

.loader-percent {
    margin-top: 8px;
    color: #fff;
    font-family: "Montserrat", "Roboto", system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(12px, 2.5vmin, 16px);
    opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
    .loader-progress .loader-bar {
        transition: none;
    }
}
