.tasks-tab-nav {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tasks-tab-nav::-webkit-scrollbar {
    display: none;
}

.tasks-tab-nav button {
    position: relative;
    padding: 12px 5px;
    margin: 0 5px;
    color: var(--color-text-light);
    background: none;
    border: none;
    font-size: var(--text-md);
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.tasks-tab-nav button:first-child {
    padding-left: 5px;
}

.tasks-tab-nav button:hover {
    color: var(--color-text-secondary);
}

.tasks-tab-nav button.active {
    color: var(--color-brand);
    font-weight: var(--font-bold);
}

.tasks-tab-nav button::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 4px;
    border-radius: 2px;
    background: var(--color-brand, #9333ea);
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    transform-origin: center;
}

.tasks-tab-nav button.active::after {
    transform: scaleX(1);
    opacity: 1;
}

.tasks-tab-link {
    position: relative;
    padding: 6px 14px;
    margin: auto 0 auto 8px;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 50%, #f97316 100%);
    color: white;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tasks-tab-link:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

@keyframes tabFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tasks-tab-content {
    display: none;
}

.tasks-tab-content.active {
    display: block;
    animation: tabFadeSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@media (max-width: 768px) {
    .tasks-tab-nav button {
        padding: 10px 14px;
        font-size: var(--text-base);
    }

    .tasks-tab-nav button.active::after {
        left: 14px;
        right: 14px;
    }
}
