Why the morning takes a different form
The ending in Доброго ранку is associated with the genitive case, and the phrase can be understood as a shortened wish for a good morning. Compare it with Добрий день, the usual daytime greeting, which uses a different grammatical pattern. The difference is not a rule you need to apply to every new phrase: learn these expressions individually. Historical dictionaries record more than one morning formula, so variation is not necessarily a sign of careless speech.
The Ukrainian sound behind the letter г
The letter г in Доброго does not usually have the hard English g sound. It is pronounced with a voiced h-like quality. The vowel and consonant sounds in ранку are also distinct from English, but a clear approximation is enough to get started. Listen to the greeting as one unit and then practise the two stressed opening syllables separately. Familiarity with Russian Cyrillic does not automatically give you the Ukrainian pronunciation.
Keep the conversation in the right register
When a greeting becomes a conversation, Ukrainian distinguishes between familiar ти and respectful or plural ви. You can keep the same morning greeting with either, then choose your next words according to the relationship. In a message to a group, всім means to everyone. At the end of a conversation, Гарного дня! wishes the recipient a pleasant day. It is especially useful after an early exchange when you will not speak again for some time.