I usually find the rules about jeans and "short trousers" to be a bit much. As a woman, I find I can dress both up very nicely....a pretty sweater or blouse, fancy shoes and jewelry, etc. I'm also fastidious about how my clothes fit which helps the overall picture.
Of course, what some young people call shorts these days.....LOL.