What is the difference between pansexual and bisexual?

Bisexuality refers to attraction towards the male and female genders, or attraction to two or more genders.

Pansexuality, on the other hand, refers to the attraction to individuals in general and does not depend on gender identity.