body {
    background-color: #f8f9fa;
}
.timeline-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.timeline-container {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    width: 90%;
    background: #fff;
    padding: 20px 0 0px 0;
    justify-content:center
}
.timeline {
    display: flex;
    align-items: center;
    position: relative;
    width: max-content;
    margin:0 2rem;
}
/* Full Connecting Line */
.timeline::before {
    content: "";
    position: absolute;
    top: 14%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ccc;
    transform: translateY(-50%);
    z-index: 0;
}
/* Timeline Items */
.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    min-height: 110px;
}
    .timeline-item .icon {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 18px;
        position: relative;
        z-index: 2;
        transition: 0.3s;
    }
    .timeline-item p {
        margin-top: 10px;
        white-space: pre-wrap;
        line-height: 1.4;
        margin-bottom:0
    }
/* Status Colors */
.completed .icon {
    background: #28a745;
    color: white;
    border: 3px solid #1e7e34;
}
.active .icon {
    
    background: #007bff;
    color: white !important;
    border: 3px solid #0056b3;
}
.active .icon i{
    color: var(--surface-color)
}
.pending .icon {
    background: #fff;
    color: white;
}
/* Completed Line
.timeline-item.completed::before {
    content: "";
    position: absolute;
    top: 14%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #28a745;
    transform: translateY(-50%);
    z-index: 1;
} */
.timeline-item:first-child::before {
    display: none; /* Remove line for first item */
}
/* Navigation Buttons */
.nav-btn {
    background-color: var(--bg-accent-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    margin-top:2%
}
    .nav-btn:hover {
        background-color: color-mix(in srgb, var(--bg-accent-color), transparent 15%);
    }
.nav-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
@media (max-width: 768px) {
    .timeline-container {
        width: 100%;
        padding: 15px 0;
    }
    .timeline-item {
        min-width: 120px;
    }
    .timeline-item .icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
  
}


.timeline-item:after {
    content: attr(data-label);
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-135%);
    font-size: 14px;
    color: #333;
}

.timeline .timeline-item:first-child:after {
    transform: translateX(-104%);
}

.timeline .timeline-item[data-label] {
    width:200px;
    white-space: wrap;
    text-align: center;
    line-height: 1.5;
}

.timeline .timeline-item:last-child[data-label] {
    width: auto;
    min-width: auto;
}
.timeline .timeline-item:last-child:after {
    left: 0;
    transform: translateX(-45%);
}