/* Custom CSS for the tracking timeline layout */

.timeline-container {
    list-style: none;
    padding: 0;
    position: relative;
}

/* The vertical line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 17px;
    width: 2px;
    background-color: #ddd;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background-color: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
    z-index: 1;
}

.timeline-content {
    margin-right: 50px;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

/* Styles for active/completed items */
.timeline-item.active .timeline-icon,
.timeline-item.completed .timeline-icon {
    border-color: #0d6efd;
    background-color: #0d6efd;
    color: #fff;
}

.timeline-item.active .timeline-content,
.timeline-item.completed .timeline-content {
    background-color: #e9f0fe;
}

.timeline-item.active .timeline-content h6,
.timeline-item.completed .timeline-content h6 {
    color: #0d6efd;
}

/* The vertical line for active items */
.timeline-container::before {
    background-image: linear-gradient(to bottom, #0d6efd, #ddd);
}

.timeline-item.completed:not(:last-child) ~ .timeline-item::before {
    background-color: #ddd;
}
