.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem 0;
}
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: #414141;
    transform: translateX(-50%);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    width: 70%;
    padding: 1rem 2rem;
    box-sizing: border-box;
}

.timeline-item::before {
    display: none;
}

.timeline-content {
    position: relative;
    background: #212121;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.left .timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: -0.75rem;
    width: 0.25rem;
    height: 100%;
    background: #3B82F6;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
.timeline-item.right .timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -0.75rem;
    width: 0.25rem;
    height: 100%;
    background: #3B82F6 ;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.timeline-item.completed .timeline-content::before,
.timeline-item.completed .timeline-content::after {
    background: #10B981 !important;
}
.timeline-item.completed .timeline-content {
    background: #212121;
    opacity: 0.6;
}
.timeline-item.completed .timeline-content:hover {
    transform: none;
    box-shadow: none;
}

.timeline-item.pending .timeline-content::before,
.timeline-item.pending .timeline-content::after {
    background: #9CA3AF !important;
}
.timeline-item.pending .timeline-content {
    opacity: 0.8;
}

.timeline-item.left {
    left: -20%;
    text-align: right;
}
.timeline-item.right {
    left: 50%;
    text-align: left;
}
.timeline-item.branch {
    left: 50%;
    width: auto;
    transform: translateX(-50%);
    text-align: center;
}

.timeline-item.branch .timeline-content {
    padding: 0.75rem 1rem;
    background: #212121;
}

@media (max-width:600px) {
    .timeline-line {
        display: none;
    }

    .timeline-item {
        width: 100% !important;
        padding: 0.75rem 1rem;
        left: 0 !important;
        text-align: left !important;
    }

    .timeline-item.left .timeline-content::after,
    .timeline-item.right .timeline-content::before {
        left: -1rem;
        right: auto;
        width: 0.25rem;
    }

    .timeline-content {
        margin-left: 1rem;
    }

    .timeline-item.branch {
        left: 0 !important;
        transform: none;
    }
}