.tab-container {
    width: fit-content;
    max-width: 100%;
    height: 100%;
    padding: 8px;
    background: white;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 16px;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    display: flex;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.tab-container::-webkit-scrollbar {
    display: none;
}

.tab-item {
    height: 56px;
    padding-left: 20px;
    padding-right: 24px;
    background: #F7F7F7;
    overflow: hidden;
    border-radius: 12px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    display: flex;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent tabs from shrinking */
    white-space: nowrap; /* Prevent text wrapping */
}

.tab-item:hover {
    background: #E8E8E8;
}

.tab-item.active {
    background: var(--tab-accent, #0E51A0);
}

/* Tab gradient backgrounds - using unified CSS custom properties */
.tab-item[data-gradient="popular"].active {
    background: var(--gradient-popular);
}

.tab-item[data-gradient="express"].active {
    background: var(--gradient-express);
}

.tab-item[data-gradient="exotic"].active {
    background: var(--gradient-exotic);
}

.tab-item[data-gradient="all"].active {
    background: var(--gradient-all);
}

.tab-content {
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
}

.tab-text {
    justify-content: center;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    word-wrap: break-word;
    color: black;
}

.tab-item.active .tab-text {
    color: white;
}

/* Icons inherit color; inactive shows accent, active flips to white */
.tab-item .tab-content .tab-icon { color: var(--tab-accent, #0E51A0); }
.tab-item.active .tab-content .tab-icon { color: #ffffff; }



/* Override SVG stroke for active tabs to ensure white color */
.tab-item.active .tab-content .tab-icon svg path {
    stroke: #ffffff !important;
}

@media (max-width: 600px) {
    .tab-container {
        width: 100%; /* Full width on mobile */
        gap: 6px;
        padding: 8px;
        /* Ensure smooth scrolling on mobile */
        -webkit-overflow-scrolling: touch;
    }
    .tab-item {
        padding-left: 16px;
        padding-right: 20px;
        height: 48px; /* Larger height on mobile */
        font-size: 14px;
        min-width: auto; /* Allow natural width based on content */
    }
    .tab-text {
        font-size: 14px;
        line-height: 20px;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
    .tab-container {
        width: 100%; /* Full width on very small screens too */
        gap: 4px;
        padding: 6px;
    }
    .tab-item {
        padding-left: 12px;
        padding-right: 16px;
        height: 44px; /* Still reasonably large */
    }
    .tab-text {
        font-size: 13px;
        line-height: 18px;
    }
} 