/**
 * Medical Intake Module - Progress Bar Styling
 * Step indicator and progress animation
 */

.progress-container {
    margin: 1.5rem 0 2.5rem 0;
}

.progress {
    height: 1.5rem;
    border-radius: 12px;
    background-color: #e9ecef;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4d65ff 0%, #3a50e6 100%);
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Animated stripes */
.progress-bar.animated {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* Progress Text */
.progress-text {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* Step Indicator (Alternative style) */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 2;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e9ecef;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #999;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background: #4d65ff;
    border-color: #4d65ff;
    color: white;
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
}

.step-item.active .step-label {
    color: #4d65ff;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #28a745;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .progress {
        height: 1.25rem;
    }
    
    .progress-bar {
        font-size: 0.75rem;
    }
    
    .progress-text {
        font-size: 0.875rem;
    }
    
    .step-circle {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
}

/* Smooth transitions */
.progress-bar,
.step-circle,
.step-label {
    will-change: transform;
}
