What is a "Hopeful kind of sad"?

There is a quote from the book, The Perks of Being a Wallflower, and it goes "She wasn't bitter. She was sad though. But it was a hopeful kind of sad. The kind of sad that just takes time."

What does a "hopeful kind of sad" mean?
What is a "Hopeful kind of sad"?
Post Opinion