The opposite of idealism is pragmatism, that is, being practical and actually getting things done.

Idealism tends toward dogmatism - fixed ideas without regard to how things actually are. That's how idealism can be a bad thing.