/* Loader Overlay - Full Screen Fill */
.loader-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-width: 100vw;
    background-color: #ffffff;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease-out;
    overflow: hidden;
}

/* Prevent body scroll while loader is active */
body.loading {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

/* Black overlay effect */
.loader-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Ensure spinner is above the overlay */
.spinner {
    position: relative;
    z-index: 2;
}

/* Hide loader when page is loaded */
.loader-overlay.loaded {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Loader Background - Default (up to 767px) */
.loader-overlay {
    background-image: url('/Loader/Loader%20Images/Mobile%20Loader.webp');
}

/* Loader background image media queries moved to media-queries.css */

/* Spinner Container */
.spinner {
    width: 60px;
    height: 60px;
    position: relative;
    text-align: center;
    -webkit-animation: sk-rotate 2.0s infinite linear;
    animation: sk-rotate 2.0s infinite linear;
}

/* Spinner Dots - IPN Brand Colors */
.dot1, .dot2, .dot3 {
    width: 60%;
    height: 60%;
    display: inline-block;
    position: absolute;
    border-radius: 100%;
    -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

/* IPN Gold - Top position (0 degrees / 12 o'clock) */
.dot1 {
    top: 0;
    left: 50%;
    margin-left: -30%;
    background-color: #cca83a;
}

/* IPN Red - Bottom left position (240 degrees / 8 o'clock) */
.dot2 {
    bottom: 0;
    left: 0;
    background-color: #862e2c;
    -webkit-animation-delay: -0.66s;
    animation-delay: -0.66s;
}

/* IPN Green - Bottom right position (120 degrees / 4 o'clock) */
.dot3 {
    bottom: 0;
    right: 0;
    background-color: #5c7139;
    -webkit-animation-delay: -1.33s;
    animation-delay: -1.33s;
}

/* Animations */
@-webkit-keyframes sk-rotate {
    100% {
        -webkit-transform: rotate(360deg)
    }
}

@keyframes sk-rotate {
    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg)
    }
}

@-webkit-keyframes sk-bounce {
    0%, 100% {
        -webkit-transform: scale(0.0)
    }

    50% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes sk-bounce {
    0%, 100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    }

    50% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}
