﻿/* ========================================
   LOADER.CSS - Base Fallback Styles
   Compatible with splash_box.css and splash_circle.css
   These are fallback styles that work when neither
   splash_box.css nor splash_circle.css override them
   ======================================== */

/* Legacy loader mask - kept for backwards compatibility */
.loader-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 99999;
}

/* Legacy spinning loader - kept for backwards compatibility */
.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);
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 2px !important;
}

/* ========================================
   BASE PROGRESS BAR & PERCENTAGE STYLES
   These provide fallback styling that can be 
   overridden by splash_box.css or splash_circle.css
   ======================================== */

/* Base progress bar container */
.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;
}

/* Base progress bar fill */
.loader-progress .loader-bar {
    width: 0%;
    height: 100%;
    background-image: linear-gradient(90deg, #ffffff, #e3f2fd);
    border-radius: inherit;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base percentage text */
.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;
    text-align: center;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .loader-progress .loader-bar {
        transition: none;
    }
    
    .loader,
    .loader div {
        animation: none !important;
    }
}
