How we collect bad karma? I'm a student, and I'm getting weird instant bad thoughts to hurt my mom without any reason coz of my anxiety. they are not delibarete by any means.but I have never hurt her verbally or physically. But this anxious thoughts annoy me a lot coz I love my mom a lot. She is the best. I try my best to avoid them. Does this collect bad karma? Please help me I feel so guilty without any reason as I never want to hurt my dear mom even with a thought. At times I feel like I overthink about it even. She doesn't know that those things exist even.
Random thoughts don't collect much bad karma. Intentional and deliberate thoughts generate karma. Habitual intentional thoughts accumulate karma.
Now, you are feeling remorse because you had those thoughts.
What you should do is acknowledge that those are random thoughts. Acknowledge that you don't have the intention to harm her.
And now you should disassociate from those thoughts using mindfulness. Just watch those thoughts as they appear but understand that they are not related to you or anything. Just watch and acknowledge it, then let it go.
Watch this video talk on YouTube on the scientific research done in this area.
From a canonical perspective, the Lonaphala Sutta explains that a trifling evil act has significant consequences for an undeveloped person but hardly any effect for a developed person.
Your remorse is part of that unintended significant consequence. But if you learn to let go, then you would have developed your mind to detach from such trifling negative thoughts.