@charset "UTF-8";
/* ==================== Global Tokens ==================== */
@import "cards.css";
@import "components.css";
@import "nav.css";

:root {
  color-scheme: light dark;
  --text-muted: grey;
  --accent-text: #000000;
  --text: black;
  --bg-soft: #f7fbff;
  --bg-color: #f6fbff;
  --accent-color: #4cd5e0;
  --accent-hover: #24b9c7;
  --danger-color: red;
  --border-color: #e6edf3;
  --card-bg: #ffffff;
  --glass-bg: color-mix(in srgb, var(--accent-color) 25%, transparent);
  --glass-border: rgba(255, 255, 255, 0.72);
  --radius: 14px;
  --radius-sm: calc(var(--radius) * 0.7);
  --radius-xs: calc(var(--radius) * 0.5);
  --radius-lg: calc(var(--radius) * 1.45);
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --theme-fade: 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Explicit dark theme (set by the Sun/Moon toggle) */
:root.dark-theme {
  color-scheme: dark;
  --accent-text: #ffffff;
  --text: #e6eef5;
  --text-muted: #9aa6b2;
  --bg-soft: #000;
  --bg-color: black;
  --card-bg: #000;
  --border-color: rgba(255, 255, 255, 0.04);
  --glass-bg: color-mix(in srgb, var(--accent-color) 15%, transparent);
  --glass-border: rgba(255, 255, 255, 0.12);
  --radius-sm: calc(var(--radius) * 0.7);
  --radius-xs: calc(var(--radius) * 0.5);
  --radius-lg: calc(var(--radius) * 1.45);
}

/* Explicit light theme (set by the Sun/Moon toggle) */
:root.light-theme {
  color-scheme: light;
  --accent-text: #000000;
  --text: black;
  --text-muted: grey;
  --bg-soft: #f7fbff;
  --bg-color: #f6fbff;
  --card-bg: #ffffff;
  --border-color: #e6edf3;
  --glass-bg: color-mix(in srgb, var(--accent-color) 25%, transparent);
  --glass-border: rgba(255, 255, 255, 0.72);
}

/* Smooth fade-in/out when the theme is activated */
body,
.app-container,
.top-bar,
.settings-page,
.settings-section,
.card,
.stat-card,
.report-card,
.territory-panel,
.participation-layout,
.sidebar,
.bottom-nav,
.profile-avatar,
.menu-toggle,
.fab-add,
.settings-card,
.settings-group-head,
.sidebar-link {
  transition: background-color var(--theme-fade), color var(--theme-fade),
    border-color var(--theme-fade);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --theme-fade: 1ms linear;
  }
}

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

body {
  color: var(--text);
  font-family: var(--font-main);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* ==================== App Shell ==================== */
.app-container {
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--radius);
  background-color: var(--bg-color);
}