/* Shipment Progress Bar Styles */
.shipment-progress-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.shipment-progress-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.shipment-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
}

.shipment-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.shipment-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

.shipment-progress-step.active:not(:last-child)::after,
.shipment-progress-step.completed:not(:last-child)::after {
    background: #28a745;
}

.shipment-progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: white;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.shipment-progress-step.draft .shipment-progress-circle {
    background: #6c757d;
}

.shipment-progress-step.pending .shipment-progress-circle {
    background: #ffc107;
}

.shipment-progress-step.approved .shipment-progress-circle {
    background: #28a745;
}

.shipment-progress-step.shipping .shipment-progress-circle {
    background: #17a2b8;
}

.shipment-progress-step.delivered .shipment-progress-circle {
    background: #28a745;
}

.shipment-progress-step.cancelled .shipment-progress-circle {
    background: #dc3545;
}

.shipment-progress-step.completed .shipment-progress-circle {
    background: #28a745;
}

.shipment-progress-step.completed .shipment-progress-circle::before {
    content: '✓';
    font-size: 24px;
    font-weight: bold;
}

.shipment-progress-step.active .shipment-progress-circle::after {
    content: '▼';
    position: absolute;
    top: -25px;
    font-size: 16px;
    color: #28a745;
    font-weight: bold;
}

.shipment-progress-label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #333;
    max-width: 120px;
    line-height: 1.3;
}

.shipment-progress-step.completed .shipment-progress-label,
.shipment-progress-step.active .shipment-progress-label {
    color: #28a745;
    font-weight: 600;
}

.shipment-progress-step.draft .shipment-progress-label {
    color: #6c757d;
}

.shipment-progress-step.pending .shipment-progress-label {
    color: #856404;
}

.shipment-progress-step.shipping .shipment-progress-label {
    color: #0c5460;
}

.shipment-progress-step.cancelled .shipment-progress-label {
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shipment-progress-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .shipment-progress-step:not(:last-child)::after {
        display: none;
    }
    
    .shipment-progress-step.active::after {
        display: none;
    }
    
    .shipment-progress-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .shipment-progress-label {
        font-size: 12px;
        max-width: 100px;
    }
}

/* Animation for progress steps */
.shipment-progress-step {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.shipment-progress-step:nth-child(1) { animation-delay: 0.1s; }
.shipment-progress-step:nth-child(2) { animation-delay: 0.2s; }
.shipment-progress-step:nth-child(3) { animation-delay: 0.3s; }
.shipment-progress-step:nth-child(4) { animation-delay: 0.4s; }
.shipment-progress-step:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
.shipment-progress-step:hover .shipment-progress-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.shipment-progress-step:hover .shipment-progress-label {
    transform: translateY(-2px);
}

/* Status-specific animations */
.shipment-progress-step.active .shipment-progress-circle {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4); }
    50% { box-shadow: 0 4px 16px rgba(40, 167, 69, 0.6); }
    100% { box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4); }
}
