.timeline-container {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-line {
    position: relative;
    margin-right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 2;
}

.timeline-dot.current {
    background: linear-gradient(135deg, $success, $teal);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.timeline-dot.completed {
    background: linear-gradient(135deg, $blue, $purple);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.timeline-connector {
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, #dee2e6, #adb5bd);
    margin-top: 8px;
    border-radius: 2px;
}

.timeline-content {
    flex: 1;
    @extend .border;
    @extend .bg-light-subtle;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;

    &:hover {
        @extend .shadow;
    }
}


.timeline-header {
    padding: 1rem;
    display: flex;
    justify-content: between;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.timeline-main-info {
    flex: 1;
}

.timeline-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-details {
    padding: 0 1rem 1rem;
}

.cursor-pointer {
    cursor: pointer;
}

@media (max-width: 768px) {
    .timeline-item {
        margin-bottom: 1rem;
    }

    .timeline-dot {
        width: 24px;
        height: 24px;
    }

    .timeline-connector {
        height: 30px;
    }

    .timeline-header {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .timeline-actions {
        align-self: flex-end;
    }
}