Pregnancy & diarrhea

So not to be too gross but I’m 7 weeks pregnant and I think I just ate too much and am having some diarrhea. Is that okay? It won’t harm the baby?

I also have been noticing that my poop

color is green lately and I’m not eating a ton of spinach or anything. Anyone else have this or know the cause?