/* Collection Rules Index Styles */

.timeline-container {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0.5rem;
    bottom: -1.5rem;
    width: 2px;
    background: #e9ecef;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-badge {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 2.5rem;
    height: 2.5rem;
    background: #fff;
    border: 2px solid #007bff;
    color: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-badge-green {
    border-color: #28a745 !important;
    color: #28a745 !important;
}

.timeline-badge-yellow {
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}

.timeline-badge-red {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.timeline-item.active .timeline-badge {
    background: #007bff;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.timeline-item.active .timeline-badge-green {
    background: #28a745 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.3) !important;
}

.timeline-item.active .timeline-badge-yellow {
    background: #ffc107 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3) !important;
}

.timeline-item.active .timeline-badge-red {
    background: #dc3545 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.3) !important;
}

.timeline-content {
    background: #fff;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #f1f3f5;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: #007bff;
    transform: translateX(5px);
}

.timeline-item.active .timeline-content {
    border-color: #007bff;
    background: #f8f9ff;
}



.nav-tabs-custom .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.nav-tabs-custom .nav-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: transparent;
}

.bg-soft-primary {
    background-color: rgba(0, 123, 255, 0.1);
}

.tag-pill:hover {
    opacity: 0.8;
}
