for a while / for a long time
When I use these words, for a while / for a long time, using perfect form is better?
For example.
I didn't study for a while / for a long time.
I hadn't study for a while / for a long time.
And, time of "for a long time" is longer than "for a while?"