/* =====================================================
   PURE CSS PREMIUM LOADER UTILITY (Glassmorphism)
   Author: Antigravity Team
   ===================================================== */

:root {
    --loader-accent: #2A3F54;
    /* Navy Premium */
    --loader-bg: rgba(255, 255, 255, 0.4);
}

/* Global Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    /* Slightly darker since blur is removed */
    display: none;
    /* Controlled by JS and .active */
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.loader-overlay.active {
    display: flex;
    /* Force display when active */
    opacity: 1;
}

/* Loader Card Container */
.loader-card {
    background: white;
    padding: 35px 60px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    animation: loader-slide-up 0.4s ease-out;
}

@keyframes loader-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modern Spinner Rings */
.spinner-premium {
    width: 64px;
    height: 64px;
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

.spinner-premium div {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4.5px solid transparent;
    border-top-color: var(--loader-accent);
    border-radius: 50%;
    animation: spinner-anim 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-premium div:nth-child(1) {
    animation-delay: -0.45s;
}

.spinner-premium div:nth-child(2) {
    animation-delay: -0.3s;
}

.spinner-premium div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes spinner-anim {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Premium Typography */
.loader-text {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
    margin-top: 15px;
}

/* Inline/Button Loader */
.loader-inline {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spinner-anim 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

/* Patch for missing assets in console */
.lightbox-fix {
    display: none;
}