<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><%= typeof title !== 'undefined' ? title + ' - ' : '' %>Admin - <%= appName %></title>
  <script src="https://cdn.tailwindcss.com"></script>
  <script src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
  <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
  <style>
    [x-cloak] { display: none !important; }
    .sidebar-link { @apply flex items-center gap-3 px-4 py-2.5 rounded-lg text-sm font-medium transition-colors; }
    .sidebar-link:hover { @apply bg-indigo-700 text-white; }
    .sidebar-link.active { @apply bg-indigo-700 text-white; }
  </style>
</head>
<body class="bg-gray-100 min-h-screen">
  <div class="flex h-screen overflow-hidden">
    <%- include('../partials/admin-sidebar') %>
    <div class="flex-1 flex flex-col overflow-hidden">
      <%- include('../partials/admin-header') %>
      <main class="flex-1 overflow-y-auto p-6">
        <%- include('../partials/alerts') %>
        <%- body %>
      </main>
    </div>
  </div>
</body>
</html>
