/* ===================================
   Traffic Sub-Tabs System
   =================================== */
.traffic-tabs-container {
    margin-top: 0;
}

.traffic-tabs-header {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.traffic-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px 8px 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.traffic-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.traffic-tab-btn.active {
    background: rgba(99, 102, 241, 0.1);
    color: #ffffff;
}

.traffic-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #6366f1;
}

.traffic-tab-btn .tab-icon {
    font-size: 1.1rem;
}

.traffic-tab-btn .tab-text {
    font-weight: 500;
}

.traffic-tabs-content {
    animation: fadeIn 0.3s ease;
}

.traffic-tab-pane {
    display: none;
}

.traffic-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .traffic-tabs-header {
        flex-direction: column;
        gap: 4px;
    }

    .traffic-tab-btn {
        width: 100%;
        justify-content: flex-start;
        border-radius: 8px;
    }

    .traffic-tab-btn.active::after {
        display: none;
    }

    .traffic-tab-btn.active {
        border-left: 3px solid #6366f1;
    }
}
