Haha don't worry I know it can be concerning to see green poop in the toilet bowl but its quite common and doesn't have to be from eating green food.
The liver secretes a bright green fluid called bile into the small intestine or it is concentrated and stored in the gallbladder.
Bile plays a role in the absorption, and digestion of fat and fat soluble vitamins. It helps to soften stools and is responsible for giving stools their characteristic brown color. Bile helps to alkalinize the contents of the intestines. It is made up of bile salts, cholesterol, electrolytes, and a few other substances with long names you will forget in 5 minutes. Lol. As bile makes its way through to the small intestine and then to the large intestine via the bile ducts, it progressively changes color from green to yellow to brown, due to the action of bacteria in the large intestine on the bile salts.
Green stool often indicates that food has passed through the intestines faster than normal before it could be changed from green to brown. Diarrhea is a result of decreased bowel transit time so anything that causes diarrhea can also result in green stool.
What did you take 6 tabs of anyways? DXM maybe? if so that could be the cause of your diarrhea.