Bleeding and cramping at 8w

Yesterday I got to go see the heartbeat, and saw the baby for the first time. Later last night around 12:30 I got up to use the restroom and noticed blood on the toilet paper. I usually hold my pee to the max when I'm asleep so I had some cramping but couldn't tell if it was in my bladder or uterus. I laid back back down after I put a panty liner on. I still continued to cramp. Got back up about a hour later peed again, wiped and the blood was brown. And is still brown, but not leaking out of me. Does anyone know what this could be?