<!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 + ' - ' : '' %><%= 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">
  <style>
    [x-cloak] { display: none !important; }
    .star-rating input { display: none; }
    .star-rating label { cursor: pointer; font-size: 1.5rem; color: #ddd; }
    .star-rating input:checked ~ label { color: #f59e0b; }
    .star-rating label:hover, .star-rating label:hover ~ label { color: #f59e0b; }
  </style>
</head>
<body class="bg-gray-50 min-h-screen flex flex-col">
  <%- include('../partials/header') %>

  <main class="flex-1">
    <%- include('../partials/alerts') %>
    <%- body %>
  </main>

  <%- include('../partials/footer') %>
</body>
</html>
