My stool was really hard and a litte green but can that be from not drinking water/bad diet it was long and I'm anxious?

Yes. Hard stools that are difficult to pass are usually the result of improper diet and little hydration. Drinking plenty of water and having more leafy green vegetables in your diet should help. The color green in stool is not unheard of and can be caused by any number of food dyes.