/**
 * @file design-tokens.css
 * @description FleetGeoSync 全域設計系統變數字典 (公務標準風格)
 */

:root {
  /* 公務品牌標準色系 */
  --primary: #1e40af;         /* 市府公務深藍 (主色) */
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #475569;       /* 中性岩灰 */
  
  /* 語意狀態色 */
  --success: #16a34a;         /* 結案/通過綠 */
  --success-hover: #15803d;
  --warning: #d97706;         /* 待審/注意黃 */
  --danger: #dc2626;          /* 鎖定/異常紅 */
  --info: #0284c7;            /* 資訊藍 */

  /* 中性背景與表面色階 */
  --bg-main: #f8fafc;         /* 頁面底色 */
  --bg-surface: #ffffff;      /* 卡片表面 */
  --bg-subtle: #f1f5f9;       /* 淺灰區塊底色 */
  --border-color: #cbd5e1;    /* 標準邊框 */
  --border-focus: #3b82f6;

  /* 文字階層 */
  --text-main: #0f172a;       /* 主要深色標題與內文 */
  --text-muted: #64748b;      /* 次要輔助說明 */
  --text-inverse: #ffffff;    /* 反白文字 */

  /* 圓角與陰影 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  /* 觸控與排版尺寸 (公務行動手持優化) */
  --touch-target: 52px;       /* 最小觸控高度 (防司機誤按) */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang TC", "Noto Sans TC", sans-serif;
  --header-height: 60px;
  --sidebar-width: 240px;
}

/* 全域重置與基礎樣式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
