My seven year old boy has quite a bit of attitude these days. At home, I calmly ask him to go to his room until he can find a 'reasonable' voice. (Doesn't have to be friendly or cheerful, just not snotty.)
Sometimes, when he sounds bossy, I ask him "Would you like me to speak to you this way?" and usually get a no. I will then remind him that we need to treat others as we want to be treated.
I'm also consistent and firm about expectations. Before we watch tv, I ask "so, when this show is done, what are you going to do?" to help him remember that he's not to fuss. Yesterday that didn't go well in the morning and so he lost television privileges for the rest of the day.
There's also a lot to be said about flexibility. When my son misses out on something and he perceives it to be the fault of others, I don't offer second chances. Last night,though, he came to me and explained calmly that he was aware that he *had* made choices which resulted in him not using his time well; I did give him a few extra minutes, then, to finish up what he's doing. When he takes responsibility, even after the fact, I think it is SUPER important to acknowledge that. We are also actively acknowledging how much we enjoy the good attitude moments (not harping on the bad attitude, though), and the times when he really pays attention, which isn't easy for some kids.
I try to keep the message/expectations short and clear and not talk it to death. I find the more talking I do, the more negative behaviors I see. I deal with things in the moment, explain once and try to move on. Kids will continue to do the things which get them attention, even/esp. negative attention. So make your boundary with your daughter "I'll be ready to listen when you can use a reasonable voice" and then carry on with what you need to be doing. My guess is that some of this is also done for your reaction. Even when they get snotty, if you can remain calm and not get hooked in, so much the better. You can also address this later, when things are pleasant. "I noticed that you seemed really angry at me earlier. What was going on for you?" and she may be in a better place to look more critically at her own actions. "What do you think you needed? What do you think you could do next time?" are questions which might help her thought processes about her own actions, so she can consider the mistake and know how to correct it and what the other reasonable options are.
Lastly, I've been giving him a lot of friendly touches when he's engaged in things which are pleasing to him and which aren't a problem for me. This technique is called 'giving positive attention during neutral times' (when he's just doing something for his own joy of it). This means a squeeze on the shoulder, kiss on the head, tousling his hair, rubbing his back-- nonverbal attention to let him know that I value him even when he isn't doing anything to *please* me. It helps in curbing some of the negative attention-getting behaviors.
ETA: I should add, lest anyone think I am unrealistic in this approach-- there ARE times when I've had enough and will raise my voice and send him to his room. I just try really, really hard to pick those times for maximum impact and not make that the norm.