{* ============================================
   ADMIN2000 - Modernes Admin-System
   Haupttemplate mit Navigation und Content
   ============================================ *}

<link rel="stylesheet" type="text/css" href="{$THEME_DIR}/media/css/admin2000.css?version=1" />

<div class="admin2000-container">

	{* Top Header *}
	<div class="admin2000-header">
		<div class="admin2000-header-left">
			<h1>🚀 Admin2000</h1>
			<p class="admin2000-tagline">Moderne Verwaltung</p>
		</div>
		<div class="admin2000-header-right">
			<span class="admin2000-version">v1.0.0</span>
		</div>
	</div>

	{* Main Content Area *}
	<div class="admin2000-main">

		{* Sidebar Navigation *}
		<aside class="admin2000-sidebar">

			{foreach $admin2000_nav as $section_key => $section}
			<div class="admin2000-nav-section {if $admin2000_section == $section_key}active{/if}">
				<h3 class="admin2000-nav-title">
					<span class="admin2000-nav-icon">{$section.icon}</span>
					{$section.title}
				</h3>

				<ul class="admin2000-nav-list">
					{foreach $section.pages as $page_key => $page}
					<li class="{if $page.active}active{/if}">
						<a href="{$page.url}" class="admin2000-nav-link">
							<span class="admin2000-page-icon">{$page.icon}</span>
							{$page.title}
						</a>
					</li>
					{/foreach}
				</ul>
			</div>
			{/foreach}

			<div class="admin2000-sidebar-footer">
				<a href="./index.php?admin_modul=admin_dashboard" class="admin2000-back-link">
					← Zurück zum alten Admin
				</a>
			</div>

		</aside>

		{* Content Area *}
		<main class="admin2000-content">
			{$admin2000_content}
		</main>

	</div>

</div>

<script>
// Admin2000 JavaScript
$(document).ready(function() {
	console.log('Admin2000 loaded successfully! 🚀');

	// Smooth scroll behavior (using .click() for jQuery 1.6.3 compatibility)
	$('.admin2000-nav-link').click(function(e) {
		// Add loading state
		$('.admin2000-content').css('opacity', '0.5');
	});
});
</script>
