/**
 * Progress Bar Component Styles
 * Author: ร้านเช่าTS4
 * Description: Styles for progress bars and step indicators
 */

/* ========================================
   PROGRESS BAR BASE STYLES
   ======================================== */

.progress-bar {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* ========================================
   STEP INDICATORS
   ======================================== */

.progress-step-circle {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-width: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.progress-step-circle.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.progress-step-circle.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    animation: progress-pulse 2s infinite;
}

.progress-step-circle.pending {
    background: white;
    border-color: #d1d5db;
    color: #9ca3af;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   PROGRESS LINES
   ======================================== */

.progress-line {
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(90deg, #f3f4f6, #e5e7eb);
    position: relative;
}

.progress-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    width: 100px;
    animation: progress-shimmer 2s infinite;
}

.progress-fill {
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-fill.completed {
    background: linear-gradient(90deg, #10b981, #059669);
}

.progress-fill.active {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* ========================================
   STATUS BADGE
   ======================================== */

.progress-status-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #1e40af;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.progress-status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.progress-status-badge i {
    color: #3b82f6;
    animation: info-pulse 2s infinite;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes progress-pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    }
}

@keyframes progress-shimmer {
    0% {
        left: -100px;
    }
    100% {
        left: 100%;
    }
}

@keyframes info-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}
