/* ============================================================================
   CraftCore Theme Tokens: Forest + Cream + Copper
   ============================================================================ */
:root {
  /* Page & Surfaces */
  --color-page-bg: #f6f1e4;
  --color-card-bg: #fffbf1;
  --color-card-border: #d9cfb4;
  --color-input-bg: #fdf6e3;
  --color-input-border: #d9cfb4;
  --color-dark-surface: #1f4d2b;

  /* Typography */
  --color-text-body: #1e2a1f;
  --color-text-muted: #5a5f4f;

  /* Header & Navigation */
  --color-header-bg: #1f4d2b;
  --color-header-text: #f6f1e4;
  --color-header-border: #b8662e;

  /* Primary Accent (Main buttons, links, active states) */
  --color-primary-accent: #a4521d;
  --color-primary-accent-text: #ffffff;
  --color-primary-accent-hover: #8c4314;

  /* Secondary Accent (Secondary buttons, heading accents, on-target) */
  --color-secondary-accent: #2f6b3c;
  --color-secondary-accent-text: #ffffff;
  --color-secondary-accent-hover: #24542f;

  /* Semantic Alerts */
  --color-danger: #8f2a18;
  --color-danger-text: #ffffff;
  --color-danger-bg: #fce8e6;
  --color-danger-border: #e8a096;
  
  --color-warning: #854d0e;
  --color-warning-text: #854d0e;
  --color-warning-bg: #fef3c7;
  --color-warning-border: #d97706;


  /* Chart.js Palette Tokens */
  --chart-1: #2f6b3c; /* Forest Green */
  --chart-2: #a4521d; /* Copper */
  --chart-3: #2f7a6e; /* Sage Teal */
  --chart-4: #c9a24a; /* Warm Wheat */
  --chart-5: #1f4d2b; /* Deep Forest */
  --chart-6: #b8662e; /* Muted Clay */

  /* Tank Status Tints (Distinct 4 statuses) */
  --color-status-empty-fill: #eef0ea;
  --color-status-empty-border: #d9cfb4;
  --color-status-fermenting-fill: #f3dcc4;
  --color-status-fermenting-border: #a4521d;
  --color-status-conditioning-fill: #dcebe6;
  --color-status-conditioning-border: #2f7a6e;
  --color-status-ready-fill: #d6ecd2;
  --color-status-ready-border: #2f6b3c;

  /* Legacy Tank Alias Variables */
  --color-tank-empty: var(--color-status-empty-fill);
  --color-tank-ready: var(--color-status-ready-fill);
  --color-tank-fermenting: var(--color-status-fermenting-fill);
  --color-tank-conditioning: var(--color-status-conditioning-fill);
}

/* Base Body Application */
body {
  background-color: var(--color-page-bg);
  color: var(--color-text-body);
}
