/* ==========================================================================
   NOTE FOR FUTURE DEVELOPERS
   --------------------------------------------------------------------------
   Django's ManifestStaticFilesStorage only hashes CSS files that go through
   its post-processing pipeline. This file contains no U. R. L. reference,
   so Django will hash it.
   ========================================================================== */

.force-django-hash-real {
  background-image: url("../img/force_hash.7fec3ca8340c.png");
}


/* ==========================================================================
   Base Styles Global Tokens, Resets, Typography
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --color-primary: #0d6efd;
  --color-primary-soft: #e7f1ff;
  --color-danger: #dc3545;
  --color-warning: #ffc107;
  --color-success: #198754;
  --color-info: #0dcaf0;

  --color-border: #d0d7de;
  --color-border-subtle: #e5e7eb;
  --color-surface: #ffffff;
  --color-muted: #6c757d;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;

  --shadow-soft: 0 1px 3px rgba(0,0,0,0.08);
}

/* Dark-theme values for the design tokens, driven by Bootstrap 5.3's
   data-bs-theme="dark" on <html>. Everything below that reads these tokens (or
   the --bs-* variables) adapts to the theme instead of being pinned light. */
[data-bs-theme="dark"] {
  --color-surface: #2b3035;
  --color-border: #495057;
  --color-border-subtle: #3a3f44;
  --color-muted: #adb5bd;
  --color-primary-soft: #172a46;
}

/* --- Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Follow the active Bootstrap theme rather than hardcoding light, so the whole
     page (not just Bootstrap components) goes dark under data-bs-theme="dark". */
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  padding: var(--space-4);
}

/* --- Links --- */
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- Forms --- */
input, select, button {
  font-family: inherit;
}

/* --- Utility spacing --- */
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }

/* --- Containers --- */
section {
  margin-top: var(--space-4);
}
