/* ==========================================================================
   ExpoGeek — Global sleek loader overlay
   Restyles the legacy `.gif-loader` overlay into a minimalist, frosted-glass
   loader with a smooth brand-coloured spinner. Loaded last so the rules below
   override the per-page inline `<style>` blocks (hence the `!important`s).
   NOTE: `display` is intentionally left to the inline style/JS (.show()/.hide())
   so the existing toggle logic keeps working.
   ========================================================================== */

.gif-loader {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2147483647 !important;
    background: rgba(15, 23, 28, 0.38) !important;
    -webkit-backdrop-filter: blur(7px) saturate(115%);
    backdrop-filter: blur(7px) saturate(115%);
    text-align: center;
    animation: epLoaderFade 0.28s ease both;
}

/* Retire the old animated GIF entirely. */
.gif-loader img {
    display: none !important;
}

/* Outer spinning ring — brand arc on a faint track. */
.gif-loader::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 50%;
    border: 3px solid rgba(2, 141, 148, 0.16);
    border-top-color: #028D94;
    border-right-color: #028D94;
    box-shadow: 0 8px 30px rgba(2, 141, 148, 0.22);
    animation: epLoaderSpin 0.7s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

/* Inner counter-rotating ring for a polished dual-ring feel. */
.gif-loader::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    border-bottom-color: rgba(2, 141, 148, 0.55);
    animation: epLoaderSpin 1.05s linear infinite reverse;
}

@keyframes epLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes epLoaderFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gif-loader::before,
    .gif-loader::after {
        animation-duration: 1.6s;
    }
    .gif-loader {
        animation: none;
    }
}
