Self-righteousness is defined as being smugly proud of one's own opinion and intolerant of others. What Job repented of was his misunderstanding of God.
On the heels of self-deception and self-justification often comes self-righteousness. This occurs when we set our own standards rather than God's.
Self-righteous people tend to trust in their own heart, be wise in their own eyes, justify themselves, despise or disregard others, and judge or condemn others.
The notion that it does not matter what we wear if our heart is right on the inside is foolish. Our clothing ought to reflect our inward character.
The Bible certainly applies to true Christians, but sometimes individual verses do not apply to us at all (i.e. instructions for ministers when we are not one).