<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html lang="en" class="<?php echo isset($theme_class) ? $theme_class : 'dark'; ?>">

<head>
	<?php $this->load->view('partials/head', isset($head) ? $head : get_defined_vars()); ?>
</head>

<body class="antialiased min-h-screen flex overflow-hidden bg-background text-foreground">
	<?php $this->load->view('partials/sidebar', get_defined_vars()); ?>
	<main class="flex-1 flex flex-col h-screen overflow-hidden relative w-full bg-background">
		<?php $this->load->view('partials/header', get_defined_vars()); ?>
		<div class="flex-1 overflow-y-auto p-6 scroll-smooth relative">
			<?php $this->load->view($content_view, isset($content_data) ? $content_data : array()); ?>
		</div>
	</main>
	<?php $this->load->view('partials/scripts', get_defined_vars()); ?>
</body>

</html>
