Тебе хорошо? - it's about "his/her state".
У тебя всё хорошо? - it's about "state of affairs", not "his/her state".