\ProvidesPackage{theme/beamerouterthemecipher}[2025/05/04 v1.0 Cipher Beamer Theme]

% Frame title
\defbeamertemplate*{frametitle}{cipher}{
	\begin{beamercolorbox}[wd=\paperwidth,sep=0.5cm]{frametitle}
		\usebeamerfont{frametitle}\insertframetitle\par%
		\ifx\insertframesubtitle\@empty\else%
			{\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle\par}%
		\fi%
	\end{beamercolorbox}
}

% Footline (only shown when not cover slide)
\defbeamertemplate*{footline}{cipher}{
	\ifnum\c@framenumber=1\else
		\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,leftskip=0.3cm,rightskip=0.3cm]{footline}
			\usebeamerfont{footline}\color{footline.fg!50}\inserttitle\ - \insertinstitute\hfill\insertframenumber\,/\,\inserttotalframenumber
		\end{beamercolorbox}
	\fi
}

% Background - can be used to add a subtle border matching the theme
\defbeamertemplate*{background}{cipher}{
	\begin{tikzpicture}[remember picture, overlay]
		% Add a subtle border to all slides
		\draw[cipheraccent, line width=3pt]
		(current page.north west) rectangle (current page.south east);
	\end{tikzpicture}
}
