Key Points
- Nataša Pirc Musar has won Slovenia's presidential election.
- She will be the central European nation's first female head of state
- The ex-lawyer counts Melania Trump among her former clients.
Nataša Pirc Musar will become Slovenia's first female head of state after winning the second round of the presidential election.
The 54-year-old won 53.83 per cent of the votes in the runoff, while her rival, right-wing politician and former foreign minister Anže Logar, won 46.17 per cent, according to election commission data based on 99 per cent the votes counted.
Turnout was 49.9 per cent, the commission data showed.
"I will do my best to be a true president for all, to work for fundamental and constitutional human and democratic rights and democracy," Ms Pirc Musar told reporters after claiming victory.
Although the role is mostly ceremonial, the president is commander in chief of the armed forces and nominates several top officials, including the central bank governor.

Newly-elected Slovenian President Nataša Pirc Musar celebrated her victory in Ljubljana with a cake. Source: AFP / JURE MAKOVEC
The new president of Slovenia, a European Union, and NATO member state, replaces Borut Pahor who has been active in politics for 30 years.
A former fashion model who served two five-year terms, Mr Pahor is often referred to in public as the Instagram president for his frequent use of the social network.
"I expect the next president to care about us, the citizens, to represent Slovenia in a good manner," Uros Pinter said after casting his ballot in Ljubljana.
"I think it is time for a female president."

Conservative veteran Anže Logar was running against Nataša Pirc Musar in the election. Source: AFP / JURE MAKOVEC
Her rival Mr Logar, 46, is a member of the right-wing Slovenian Democratic Party (SDS) of former prime minister Janez Janša, who lost April's parliamentary election to the environmentalist Freedom Movement of Robert Golub.
Commenting on the outcome of Sunday's presidential election, Mr Golub told reporters: "I am confident that we will work well together to address the common challenges of the future."