Quran 7:33 – Arrogance And Envy
Morality has to do with right and wrong actions with respect to others. In that respect any immoral behavior would come under usurping rights of others and wrongful oppression .
So then why Islam condemns these feelings that that much. Like it’s not a little thing to say that: “it’s easier for a camel to go through the eye of a needle than for an arrogant person to enter paradise”.
If one has these feelings that do not result in wrongful behavior then it can be expected that God will not hold such a person accountable. However, it is generally not possible for these feelings to not manifest in behavior.