às mil maravilhas

Etymology
lit. 'at the thousand wonders'.

Adverb

 * 1)  very well, perfectly

Usage notes
Often used sarcastically to describe one's false or delusional thoughts about the state of a situation, like in Pensava que tudo estava às mil maravilhas, mas não - He thought that everything was going quite well, but it wasn't.