/* assets/css/loading.css - Elegant Brand Loader */

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Flex container to stack the text and the indicator */
.brand-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* =========================================
   Special Design for 'EduPlat'
   ========================================= */
.brand-text {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -0.04em;

    /* Beautiful Indigo to Purple Gradient */
    background: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    /* Subtle breathing and glowing animation */
    animation: breathe 2s ease-in-out infinite alternate;
}

/* =========================================
   Sleek Sweeping Loading Indicator
   ========================================= */
.brand-indicator {
    width: 100px;
    height: 4px;
    background-color: #F1F5F9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    /* Soft shadow to match the text */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.indicator-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 35%;
    /* Width of the moving chunk */
    background: linear-gradient(90deg, #4F46E5, #8B5CF6);
    border-radius: 4px;
    animation: sweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* =========================================
   Keyframe Animations
   ========================================= */
@keyframes breathe {
    0% {
        transform: scale(0.98);
        /* Note: Using filter instead of text-shadow because of the background-clip */
        filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.15));
    }

    100% {
        transform: scale(1.02);
        filter: drop-shadow(0 8px 24px rgba(99, 102, 241, 0.35));
    }
}

@keyframes sweep {
    0% {
        left: -35%;
    }

    100% {
        left: 100%;
    }
}