Costa Rica is reasonably safe.  It's common to be a victim of petty theft, as it's pretty much unavoidable. Drug trafficking also happens in some parts of the country.