Illusion of control versus overconfidence

Illusion of control is marked as a cognitive bias and overconfidence an emotional one. My quesiton is overconfidence is a subset of illusion of control so which category should overconfidence actually belong to? is it an emotional or a cognitive bias or both.

OC is primarily emotional but can be cognitive as well.