You can say “have a good day” with no problem. But if you say “I hope you enjoy the next 24 hours”, it sounds vaguely threatening.

You can say…