If you feel like you made a perfectly reasonable choice -- and it sounds like you did -- then there is no reason to beat yourself up. A treat, especially within your calorie range, is a good thing, not a bad thing!
Please, remember, this is not about denying yourself and depriving yourself. It is about learning how to enjoy all kinds of food, in moderation, in a way that helps you be happy in all areas of your life. It sounds like you did exactly that! You had something yummy, something that you enjoy, but not in a way that will make you give up your goal of being fit and healthy (by which I mean, you didn't overindulge).
And nothing you eat, no matter how much or how little, can make you a bad person. You have to do much worse things than eat a lot to be a bad person.