Restless Nights

We’re on day 6 of a left rear amputation due to osteosarcoma. The first couple days and nights were absolutely heartbreaking. I felt useless to help her. Her vet adjusted her meds and she seems more comfortable. Days 3-6 have been really good. She’s hopping around and figured out the potty thing rather quickly. She’s even trying to pull me to take her for a walk (which I do not). The nights on the other hand are still awful. We moved a mattress, 2 weeks prior to surgery, to our 1st floor because she’s used to sleeping near us. The last two nights she doesn’t sleep and is panting and breathing heavy. I wake up several times and she’s standing in different parts of the room panting and staring at nothing in the dark. It’s kind of creepy. She doesn’t appear to be in pain during the day. The vet tech had no clue. Has anyone else experienced this. I don’t know if she’s in pain or if it’s her meds or what it could be. Thanks.