/* Order Status Progress Bar Styles */
.order-status-container {
    margin: 30px 0;
    position: relative;
}

.order-status-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .order-status-progress {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .order-status-step {
        margin: 10px 15px;
    }
    
    .order-status-line {
        display: none;
    }
}

.order-status-line {
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 1;
}

.order-status-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #6610f2;
    transition: width 0.8s ease-in-out;
    z-index: 2;
}

/* Color themes */
.theme-blue .order-status-line-progress,
.theme-blue .order-status-icon.active {
    background-color: #007bff;
}

.theme-green .order-status-line-progress,
.theme-green .order-status-icon.active {
    background-color: #28a745;
}

.theme-orange .order-status-line-progress,
.theme-orange .order-status-icon.active {
    background-color: #fd7e14;
}

.theme-red .order-status-line-progress,
.theme-red .order-status-icon.active {
    background-color: #dc3545;
}

.order-status-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.order-status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: white;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

.order-status-icon.active {
    background-color: #6610f2;
}

.order-status-icon i {
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.order-status-icon.active i {
    opacity: 1;
}

.order-status-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #666;
    transition: color 0.3s ease;
}

.order-status-step.active .order-status-text {
    color: #333;
    font-weight: 600;
}

/* Animation Styles */
.pulse-animation .order-status-icon.active {
    animation: pulse 1.5s infinite;
}

/* Flow Animation - Transition from confirmed to upcoming status */
.flow-animation .order-status-line-progress {
    position: relative;
    overflow: hidden;
    background-color: rgba(102, 16, 242, 0.8);
    height: 8px; /* Make the progress line thicker */
    top: -2px; /* Center it vertically */
    box-shadow: 0 0 10px rgba(102, 16, 242, 0.5); /* Add glow effect */
}

/* Create a dedicated flow animation container */
.flow-animation-container {
    position: absolute;
    height: 8px;
    background-color: rgba(102, 16, 242, 0.9);
    overflow: hidden;
    z-index: 10;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(102, 16, 242, 0.7);
    top: 25px; /* Match the position of the status line */
}

/* Flow animation container positioning */

/* Create a more visible flow animation with a moving gradient */
.flow-animation-container::before,
.flow-animation .order-status-line-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(255, 255, 255, 0) 100%);
    animation: flowAnimation 1.5s linear infinite;
    z-index: 3;
}

@keyframes flowAnimation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes borderPulse {
    0% {
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.8);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Flow animation styles for active icons */
.flow-animation .order-status-icon.active {
    /* No animation */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 16, 242, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(102, 16, 242, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 16, 242, 0);
    }
}

.slide-animation .order-status-line-progress {
    transition: width 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slide-animation .order-status-icon.active {
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.checkmark-animation .order-status-icon.active i {
    animation: checkmark 0.8s ease-out forwards;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fill-animation .order-status-icon {
    overflow: hidden;
    position: relative;
}

.fill-animation .order-status-icon.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #6610f2;
    animation: fillUp 0.8s ease-out forwards;
}

@keyframes fillUp {
    0% {
        height: 0;
    }
    100% {
        height: 100%;
    }
}
