.timeline {
    list-style-type: none;
    position: relative;
    padding: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #dee2e6;
    top: 0;
    bottom: 0;
    left: 30px;
    margin-left: -1.5px;
}

.timeline > li {
    position: relative;
    min-height: 50px;
    margin-bottom: 20px;
}

.timeline > li::before {
    content: '';
    position: absolute;
    width: 2px;
    top: 10px; /* Align the line to the middle of the badge */
    bottom: 0;
    left: 30px; /* Adjust to align with badge */
    margin-left: -1px;
    background-color: transparent; /* Default color */
}

.timeline > li .timeline-badge {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff; /* Light background color */
    border: 3px solid transparent; /* Default transparent border */
    top: 0; /* Adjust to ensure alignment */
    left: 20px;
}

/* Status-specific line colors */
.timeline > li.badge-af::before {
    background-color: rgb(72, 201, 72); /* Green line for AF */
}

.timeline > li.badge-rf::before {
    background-color: rgb(228, 47, 47); /* Red line for RF */
}

.timeline > li.badge-regpr::before {
    background-color: rgb(64, 122, 189); /* Blue line for REGPR */
}

.timeline > li.badge-pwf::before {
    background-color: rgb(218, 122, 67); /* Orange line for PWF */
}

/* Status-specific badge outlines */
.timeline > li .badge-af {
    border-color: rgb(26, 185, 98); /* Green outline for AF */
}

.timeline > li .badge-rf {
    border-color: rgb(247, 46, 46); /* Red outline for RF */
}

.timeline > li .badge-regpr {
    border-color: rgb(30, 89, 250); /* Blue outline for REGPR */
}

.timeline > li .badge-pwf {
    border-color: rgb(255, 123, 0); /* Orange outline for PWF */
}

.timeline > li .timeline-panel {
    margin-left: 60px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.timeline > li .timeline-panel .timeline-heading {
    font-size: 14px;
    font-weight: bold;
}

.timeline > li .timeline-panel .timeline-body {
    margin-top: 5px;
    font-size: 12px;
}

.timeline > li .timeline-panel .timeline-footer {
    margin-top: 10px;
    text-align: right;
    font-size: 10px;
    color: #6c757d;
}
