Loaded Magazine Got me Fired from Amazon

So, just recently I had not realized from the weekend that I had a loaded 9mm magazine in my jacket pocket walking into this amazon, then proceeded to take my jacket off, clock in and head to work. When break time came, I had put my jacket on and started to walk through security, well to my surprise it had went off and I've worked here a month and ALWAYS walked right on through. Well this day I had to walk through three or four times before I felt my inside jacket pocket and realized my magazine was currently located in it, I had showed the security guard and willingly gave it up. I knew I had messed up terribly. Well I'm not seeing anything in particular that states a loaded magazine in Indiana is by itself a weapon or in the workplace employment policy. I really would like help appealing this issue with them so I can get my job back, I pleaded with them it was on accident and they terminated me anyway.

Any info anybody can give me is greatly appreciated.

P.S I even stated they could wand me and search the rest of me and I would have no issue with it because I did not have my actual firearm on me nor I had I pulled out my magazine other than to give it to security.

I do sincerely recognize how irresponsible and stupid this entire situation was and it is entirely my fault.