The Bosnian conflict formally ended with the 1995 Dayton Accord , which divided the country into two entities , the Bosnian Serb Republic and the Muslim-Croat Federation .