/* Astryx Semantic Design System Tokens - 浪石进销存系统 */

@font-face {
  font-family: "NotoSansSC-VF";
  src: url("/static/fonts/noto-sans-sc-vf-subset.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surface Hierarchy: body -> surface -> muted */
  --color-background-body: #f5f5f4;
  --color-background-surface: #ffffff;
  --color-background-muted: #f0efed;
  --color-background-elevated: #ffffff;
  --color-neutral: rgba(17, 17, 17, 0.055);
  --color-overlay-hover: rgba(17, 17, 17, 0.04);

  /* Single Focal Accent (Restrained Stone/Ink Primary) */
  --color-accent: #18181b;
  --color-accent-hover: #2e2e33;
  --color-accent-soft: rgba(24, 24, 27, 0.07);
  --color-on-accent: #ffffff;

  /* 3-Tier Ink Hierarchy */
  --color-text-primary: #111111;
  --color-text-secondary: #4a4a4a;
  --color-text-tertiary: #6e6e73;
  --color-text-disabled: #9a9a9a;

  /* Hairlines & Controls */
  --color-border-hairline: rgba(17, 17, 17, 0.08);
  --color-border-control: rgba(17, 17, 17, 0.14);
  --color-border-focus: rgba(24, 24, 27, 0.45);

  /* Semantic Status Colors (used cleanly via StatusDot & concise alerts) */
  --color-info: #0074e2;
  --color-info-bg: #eef6ff;
  --color-success: #198100;
  --color-success-bg: #eef8eb;
  --color-warning: #b7791f;
  --color-warning-bg: #fdf6e7;
  --color-error: #c9303a;
  --color-error-bg: #fcf0f2;

  /* Concentric Radii */
  --radius-card: 16px;
  --radius-panel: 12px;
  --radius-control: 10px;
  --radius-inner: 7px;
  --radius-pill: 9999px;

  /* Elevation Scale */
  --shadow-none: none;
  --shadow-low: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow-med: 0 6px 20px rgba(17, 17, 17, 0.08);
  --shadow-high: 0 16px 40px rgba(17, 17, 17, 0.14);

  /* Typography */
  --font-sans: "NotoSansSC-VF", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* StatusDot component */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-background-muted);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-tertiary);
  flex-shrink: 0;
}

.status-dot.is-success {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.status-dot.is-success::before {
  background: var(--color-success);
}

.status-dot.is-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}
.status-dot.is-warning::before {
  background: var(--color-warning);
}

.status-dot.is-danger {
  background: var(--color-error-bg);
  color: var(--color-error);
}
.status-dot.is-danger::before {
  background: var(--color-error);
}

.status-dot.is-info {
  background: var(--color-info-bg);
  color: var(--color-info);
}
.status-dot.is-info::before {
  background: var(--color-info);
}

.status-dot.is-muted {
  background: var(--color-background-muted);
  color: var(--color-text-tertiary);
}
