/* Navigation Tabs */
.tabs {
    display: flex;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    max-width: 800px;
    margin: -25px auto 30px;
    /* Negative margin to overlap header slightly or pull up */
    position: relative;
    z-index: 10;
    border-radius: 50px;
    padding: 6px;
    justify-content: center;
    gap: 8px;
}

.tab-button {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 40px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.04);
}

.tab-button.active {
    color: white;
    background: var(--color-primary);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.25);
}

.tab-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tab-button:active::after {
    width: 200px;
    height: 200px;
}

@media (max-width: 768px) {
    .tabs {
        margin: 0 10px 20px;
        border-radius: 12px;
        justify-content: flex-start;
    }

    .tab-button {
        flex: 0 0 auto;
        padding: 10px 20px;
    }
}