Dark stools are potentially very serious as they can be from internal bleeding as the blood has been digested.
Bright red blood is alarming, but usually not serious as it is fresh and usually comes from the lower intestines.
Since Sophie also doesn't want to eat, I'd get her to your vet asap.
Causes of blood in a dog's stool