.tracking-timeline {
    position: relative;
    padding-left: 40px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #007bff, #e9ecef);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:last-child::after {
    content: '';
    position: absolute;
    left: -28px;
    bottom: -10px;
    width: 15px;
    height: 15px;
    background-color: #e9ecef;
    border-radius: 50%;
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-item.completed .timeline-marker {
    animation: pulse-success 2s infinite;
}

.timeline-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-left: 20px;
    border-left: 4px solid #007bff;
}

.timeline-item.completed .timeline-content {
    border-left-color: #28a745;
}

@keyframes pulse-success {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.badge-pending { background-color: #ffc107; color: #000; }
.badge-processing { background-color: #17a2b8; color: #fff; }
.badge-shipped { background-color: #28a745; color: #fff; }
.badge-delivered { background-color: #6f42c1; color: #fff; }
.badge-cancelled { background-color: #dc3545; color: #fff; }

/* Print styles */
@media print {
    .btn, .card-header { display: none !important; }
    .card { border: none !important; box-shadow: none !important; }
}