<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>{% block title %}CalMiner{% endblock %}</title>
  <link rel="stylesheet" href="/static/css/theme-default.css" />
  <link rel="stylesheet" href="/static/css/main.css" />
  <link rel="stylesheet" href="/static/css/forms.css" />
  <link rel="stylesheet" href="/static/css/imports.css" />
    {% block head_extra %}{% endblock %}
  </head>
  <body>
    <div class="app-layout">
      <aside class="app-sidebar" aria-label="Primary navigation">
        {% include "partials/base_header.html" %}
      </aside>
      <div class="app-main">
        <main id="content" class="app-content container">
          {% block content %}{% endblock %}
        </main>
        {% include "partials/base_footer.html" %}
      </div>
    </div>
    {% block scripts %}{% endblock %}
    <script>
      window.NAVIGATION_URLS = {
        dashboard:
          '{{ request.url_for("dashboard.home") if request else "/" }}',
        projects:
          '{{ request.url_for("projects.project_list_page") if request else "/projects/ui" }}',
        imports:
          '{{ request.url_for("imports.ui") if request else "/imports/ui" }}',
        simulations:
          '{{ request.url_for("ui.simulations") if request else "/ui/simulations" }}',
        reporting:
          '{{ request.url_for("ui.reporting") if request else "/ui/reporting" }}',
        settings:
          '{{ request.url_for("ui.settings") if request else "/ui/settings" }}',
      };
    </script>
    <script src="/static/js/projects.js" defer></script>
    <script src="/static/js/exports.js" defer></script>
    <script src="/static/js/imports.js" defer></script>
    <script src="/static/js/notifications.js" defer></script>
    <script src="/static/js/navigation_sidebar.js" defer></script>
    <script src="/static/js/navigation.js" defer></script>
    <script src="/static/js/theme.js"></script>
  </body>
</html>
