\documentclass[12pt]{report}
\usepackage{titlesec}
\usepackage[utf8]{inputenc}
\usepackage[latvian]{babel}
\usepackage{enumitem}
\usepackage{fancyhdr}
\usepackage{gensymb} % grādu simbols
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{indentfirst}
\usepackage{multicol}
\usepackage{ragged2e}
\usepackage{secdot}
\usepackage{tabularx}
\usepackage{tcolorbox}
\usepackage{tikz}
\usepackage{listings}
\usepackage{tocloft}
\usepackage{caption}
\usepackage{lipsum} % TODO: Remove
\usetikzlibrary{positioning}

\hypersetup{
	colorlinks=true,
	linkcolor=black,
	urlcolor=blue
}

\urlstyle{rm}

\titlespacing*{\section}{0pt}{2em}{2em}
\titlespacing*{\subsection}{0pt}{2em}{2em}
\titlespacing*{\subsubsection}{0pt}{2em}{2em}
\titleformat{\section}{\large\bfseries\centering\vfill\eject\MakeUppercase}{\thesection}{1em}{} % section formatting
\titleformat{\subsection}{\large\bfseries\centering}{\thesubsection}{1em}{} % subsection formatting
\titleformat{\subsubsection}{\large\bfseries\centering}{\thesubsubsection}{1em}{} % subsubsection formatting

\geometry{a4paper, left=30mm, right=20mm, top=20mm, bottom=20mm}

\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\linespread{1.5}
\setlength{\parindent}{1cm}
\setlength{\parskip}{0pt}

\setcounter{secnumdepth}{3} % Numering for subsubsections
\setcounter{tocdepth}{3} % Add subsubsections in ToC


% ToC config
\renewcommand{\cftsecfont}{\MakeUppercase}
\renewcommand{\cfttoctitlefont}{\hfill\large\bfseries\MakeUppercase}
\renewcommand{\cftaftertoctitle}{\hfill}
\cftsetindents{section}{0.5cm}{0.5cm}
\cftsetindents{subsection}{1cm}{1cm}
\cftsetindents{subsubsection}{1.5cm}{1.5cm}
% \addto\captionslatvian{
% 	\renewcommand{\contentsname}{Satura rādītājs}
% }

% TODO: configure table 
% TODO: configure image

% Table config


\begin{document}
\input{./src/title-page.tex}
\input{./src/abstract.tex}
\tableofcontents
\input{./src/introduction.tex}
\input{./src/example.tex}

\end{document}
