/* ==============================================================
   PROCUREON SIGNATURE FLUID GLASSMORPHIC PROCESS LOADER
   Matches the Procureon Brand Visual Identity
   ============================================================== */

#procureon-fluid-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    /* Highly transparent frosted backdrop - keeps underlying tenders & dashboards clearly visible */
    background-color: rgba(11, 17, 30, 0.42);
    
    /* Clean, soft glassmorphism blur */
    backdrop-filter: blur(8px) brightness(0.95);
    -webkit-backdrop-filter: blur(8px) brightness(0.95);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#procureon-fluid-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Central Stage Container */
.procureon-loader-stage {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ambient Cyan / Emerald Glow Halo behind the Ring */
.procureon-loader-halo {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, rgba(16, 185, 129, 0.10) 50%, transparent 72%);
    filter: blur(14px);
    pointer-events: none;
    animation: proc-halo-pulse 2.5s ease-in-out infinite alternate;
}

/* Continuous, Fluid Non-Stop Rotating Neon Ring */
.procureon-loader-ring {
    position: absolute;
    width: 250px;
    height: 250px;
    /* Continuous uniform rotation without easing pauses */
    animation: proc-spin 1.35s linear infinite;
    filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.9)) 
            drop-shadow(0 0 35px rgba(16, 185, 129, 0.55));
}

.procureon-loader-ring circle.bg-track {
    stroke: rgba(0, 242, 254, 0.12);
    stroke-width: 4.5;
}

.procureon-loader-ring circle.neon-arc {
    stroke: url(#globalProcureonGrad);
    stroke-width: 5.5;
    stroke-linecap: round;
    /* Symmetrical glowing dual arcs */
    stroke-dasharray: 230 115;
}

/* Center Procureon Logo (Badge + Typography nestled inside the glowing ring) */
.procureon-loader-logo {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    user-select: none;
}

/* The signature tilted rounded rectangle brand mark */
.procureon-loader-badge {
    width: 28px;
    height: 42px;
    border-radius: 7px;
    background: linear-gradient(135deg, #00F2FE 0%, #10B981 100%);
    transform: skewY(-16deg);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.8),
                inset 0 0 8px rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

/* Crisp bold white modern typography */
.procureon-loader-text {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -1.2px;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8),
                 0 0 25px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: baseline;
}

.procureon-loader-text .brand-on {
    color: var(--accent, #2dd4bf);
    text-shadow: 0 0 20px var(--accent-glow, rgba(45, 212, 191, 0.6));
}

/* Status text for live process feedback */
.procureon-loader-status {
    margin-top: 24px;
    font-size: 13.5px;
    font-weight: 600;
    color: #00F2FE;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.7);
    opacity: 0.95;
    min-height: 20px;
    text-align: center;
    animation: proc-text-glow 2s ease-in-out infinite alternate;
}

/* --- CONTINUOUS KEYFRAME ANIMATIONS --- */
@keyframes proc-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes proc-halo-pulse {
    0% {
        transform: scale(0.94);
        opacity: 0.65;
    }
    100% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes proc-text-glow {
    0% {
        opacity: 0.75;
    }
    100% {
        opacity: 1;
    }
}
