/* =========================================================
   CLEQUA360 PROFESSIONAL SESSION LOADER
========================================================= */

.app-loader{
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.app-loader.hidden{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Backdrop */
.loader-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.55);
    backdrop-filter: blur(4px);
}

/* Main card */
.loader-panel{
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 320px;
    padding: 26px 22px 20px;
    border-radius: 22px;
    text-align: center;
    background: rgba(18, 18, 18, 0.96);
    border: 1px solid rgba(244, 196, 0, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.loader-panel::before{
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 196, 0, 0.08), transparent 70%);
    pointer-events: none;
}

/* Core */
.loader-core{
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-ring{
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(244, 196, 0, 0.16);
    animation: ringPulse 2s ease-in-out infinite;
}

.ring-one{
    width: 90px;
    height: 90px;
    animation-delay: 0s;
}

.ring-two{
    width: 65px;
    height: 65px;
    animation-delay: 0.2s;
}

.ring-three{
    width: 40px;
    height: 40px;
    animation-delay: 0.4s;
}

.core-center{
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f4c400 0%, #d4a800 100%);
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(244, 196, 0, 0.25);
    animation: centerGlow 1.8s ease-in-out infinite;
}

@keyframes ringPulse{
    0%, 100%{
        transform: scale(0.97);
        opacity: 0.35;
    }
    50%{
        transform: scale(1.03);
        opacity: 0.9;
    }
}

@keyframes centerGlow{
    0%, 100%{
        transform: scale(0.98);
        box-shadow: 0 0 10px rgba(244, 196, 0, 0.18);
    }
    50%{
        transform: scale(1.03);
        box-shadow: 0 0 16px rgba(244, 196, 0, 0.28);
    }
}

/* Text */
.loader-copy{
    margin-bottom: 14px;
}

.loader-copy h6{
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.1px;
}

.loader-copy p{
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #b5b5b5;
}

/* Progress line */
.loader-progress-line{
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(244, 196, 0, 0.06);
}

.loader-progress-line span{
    display: block;
    width: 34%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(244,196,0,0.18), #f4c400, rgba(255,224,102,0.9));
    box-shadow: 0 0 10px rgba(244, 196, 0, 0.18);
    animation: progressSlide 1.35s ease-in-out infinite;
}

@keyframes progressSlide{
    0%{
        transform: translateX(-120%);
    }
    100%{
        transform: translateX(320%);
    }
}

/* Mobile */
@media (max-width: 576px){
    .app-loader{
        padding: 14px;
    }

    .loader-panel{
        max-width: 290px;
        padding: 22px 18px 18px;
        border-radius: 18px;
    }

    .loader-core{
        width: 82px;
        height: 82px;
        margin-bottom: 14px;
    }

    .ring-one{
        width: 82px;
        height: 82px;
    }

    .ring-two{
        width: 58px;
        height: 58px;
    }

    .ring-three{
        width: 36px;
        height: 36px;
    }

    .core-center{
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 11px;
    }

    .loader-copy h6{
        font-size: 14px;
    }

    .loader-copy p{
        font-size: 11px;
    }
}