/* ========================================
   LOADING BAR - Design with animation
   ======================================== */

.loading-bar-container {
    position: relative;
    width: 100%;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Static version - for progress filling */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FDD77E, #EB9A2B, #FE526F, #E53593);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(253, 215, 126, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: width 0.5s ease-out;
}

/* Animated version - for continuous animation (not used currently) */
.loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #FDD77E, #E53593, #17A2B8, #FDD77E);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: slideBar 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(253, 215, 126, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

@keyframes slideBar {
    0% {
        width: 0%;
        left: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0%;
        left: 100%;
    }
}

/* Pulse effect on animated bar */
.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Loading bar text/indicator */
.loading-bar-label {
    font-size: 12px;
    color: #FDD77E;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-bar-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #FDD77E;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .loading-bar-container {
        height: 5px;
        margin-bottom: 15px;
    }

    .loading-bar-label {
        font-size: 11px;
        margin-bottom: 6px;
    }
}

@media (min-width: 1024px) {
    .loading-bar-container {
        height: 7px;
        margin-bottom: 25px;
    }

    .loading-bar-label {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

/* Alternative: Striped pattern */
.loading-bar.striped {
    background: linear-gradient(45deg, #FDD77E 25%, #E53593 25%, #E53593 50%, #FDD77E 50%, #FDD77E 75%, #E53593 75%, #E53593);
    background-size: 20px 20px;
    animation: stripeAnimation 0.5s linear infinite;
}

@keyframes stripeAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}
