// Mock data for Vykon HTMA prototype
const CLIENTS = [
  { id: "c1", name: "Amelia Hart", age: 34, sex: "F", initial: "AH", color: "oklch(0.62 0.14 240)", tests: 3, lastTest: "Aug 14, 2025", status: "active", protocol: "On protocol", flags: 0, retest: "Nov 14, 2025" },
  { id: "c2", name: "Daniel Okafor", age: 41, sex: "M", initial: "DO", color: "oklch(0.62 0.14 30)", tests: 2, lastTest: "Oct 02, 2025", status: "needs-review", protocol: "Awaiting protocol", flags: 1, retest: null },
  { id: "c3", name: "Priya Sundar", age: 28, sex: "F", initial: "PS", color: "oklch(0.62 0.14 300)", tests: 1, lastTest: "Nov 11, 2025", status: "new", protocol: "New case", flags: 0, retest: null },
  { id: "c4", name: "Marcus Chen", age: 52, sex: "M", initial: "MC", color: "oklch(0.62 0.14 158)", tests: 4, lastTest: "Jul 28, 2025", status: "flagged", protocol: "Mentor review", flags: 2, retest: "Oct 28, 2025" },
  { id: "c5", name: "Sofia Romano", age: 39, sex: "F", initial: "SR", color: "oklch(0.62 0.14 80)", tests: 2, lastTest: "Sep 21, 2025", status: "active", protocol: "On protocol", flags: 0, retest: "Dec 21, 2025" },
  { id: "c6", name: "Joshua Bennett", age: 47, sex: "M", initial: "JB", color: "oklch(0.62 0.14 200)", tests: 1, lastTest: "Nov 03, 2025", status: "active", protocol: "On protocol", flags: 0, retest: null },
  { id: "c7", name: "Hannah Lee", age: 31, sex: "F", initial: "HL", color: "oklch(0.62 0.14 340)", tests: 2, lastTest: "Oct 18, 2025", status: "needs-review", protocol: "Awaiting protocol", flags: 0, retest: null },
];

const HTMA_NUTRITIONAL = [
  { sym: "Ca", name: "Calcium", value: 146, unit: "mg%", low: 25, high: 186, ideal: [40, 60] },
  { sym: "Mg", name: "Magnesium", value: 8.0, unit: "mg%", low: 2, high: 17.5, ideal: [4, 8] },
  { sym: "Na", name: "Sodium", value: 35, unit: "mg%", low: 5, high: 65, ideal: [20, 30] },
  { sym: "K",  name: "Potassium", value: 4, unit: "mg%", low: 2, high: 44, ideal: [8, 12] },
  { sym: "Cu", name: "Copper", value: 1.7, unit: "mg%", low: 0.5, high: 5.5, ideal: [1.0, 2.5] },
  { sym: "Zn", name: "Zinc", value: 15, unit: "mg%", low: 8, high: 32, ideal: [14, 20] },
  { sym: "P",  name: "Phosphorus", value: 13, unit: "mg%", low: 8, high: 22, ideal: [14, 18] },
  { sym: "Fe", name: "Iron", value: 1.1, unit: "mg%", low: 0.4, high: 3.5, ideal: [0.8, 1.6] },
  { sym: "Mn", name: "Manganese", value: 0.018, unit: "mg%", low: 0.01, high: 0.14, ideal: [0.03, 0.07] },
  { sym: "Cr", name: "Chromium", value: 0.04, unit: "mg%", low: 0.01, high: 0.20, ideal: [0.04, 0.08] },
  { sym: "Se", name: "Selenium", value: 0.07, unit: "mg%", low: 0.04, high: 1.66, ideal: [0.10, 0.13] },
  { sym: "B",  name: "Boron", value: 0.06, unit: "mg%", low: 0.01, high: 0.10, ideal: [0.04, 0.08] },
];
const HTMA_TOXIC = [
  { sym: "Sb", name: "Antimony", value: "N/A", unit: "mg%" },
  { sym: "U",  name: "Uranium", value: 0.0249, unit: "mg%" },
  { sym: "As", name: "Arsenic", value: 0.004, unit: "mg%" },
  { sym: "Hg", name: "Mercury", value: 0.01, unit: "mg%" },
  { sym: "Cd", name: "Cadmium", value: 0.01, unit: "mg%" },
  { sym: "Pb", name: "Lead", value: 0.1, unit: "mg%", flag: "elevated" },
  { sym: "Al", name: "Aluminum", value: 0.7, unit: "mg%" },
];
const HTMA_RATIOS = [
  { name: "Ca/Mg", value: 18.25, ideal: "6.67", flag: "high" },
  { name: "Ca/K", value: 36.50, ideal: "4.20", flag: "high" },
  { name: "Na/Mg", value: 4.38, ideal: "4.17" },
  { name: "Na/K", value: 8.75, ideal: "2.40", flag: "high" },
  { name: "Zn/Cu", value: 8.82, ideal: "8.00" },
  { name: "Ca/P", value: 11.23, ideal: "2.63", flag: "high" },
];

const PRIOR_TEST = {
  date: "Aug 14, 2025",
  values: { Ca: 178, Mg: 5.2, Na: 28, K: 3.5, Cu: 2.1, Zn: 13, P: 11, Fe: 1.3, Mn: 0.022, Cr: 0.03, Se: 0.06, B: 0.05 }
};

const RECENT_JOBS = [
  { id: "j1", client: "Priya Sundar", initial: "PS", color: "oklch(0.62 0.14 300)", file: "HTMA_Sundar_Nov_2025.pdf", status: "processing", progress: 64, started: "2 min ago" },
  { id: "j2", client: "Daniel Okafor", initial: "DO", color: "oklch(0.62 0.14 30)", file: "OkaforD-HTMA.pdf", status: "review", progress: 100, started: "18 min ago" },
  { id: "j3", client: "Joshua Bennett", initial: "JB", color: "oklch(0.62 0.14 200)", file: "Bennett_TraceElements.pdf", status: "complete", progress: 100, started: "1 hr ago" },
  { id: "j4", client: "—", initial: "?", color: "var(--surface-2)", file: "scan_Aug2025.pdf", status: "failed", progress: 0, started: "yesterday" },
];

const NEEDS_REVIEW = [
  { client: "Daniel Okafor", flag: "yellow", reason: "Cu/Zn imbalance, elevated Hg", date: "Oct 02" },
  { client: "Hannah Lee", flag: null, reason: "Standard protocol — ready to confirm", date: "Oct 18" },
  { client: "Marcus Chen", flag: "red", reason: "Awaiting mentor review", date: "Jul 28" },
];

window.MOCK = { CLIENTS, HTMA_NUTRITIONAL, HTMA_TOXIC, HTMA_RATIOS, PRIOR_TEST, RECENT_JOBS, NEEDS_REVIEW };
