@import url("./icons.css");
@import url("./icon-button.css");

:root {
  --ft-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ft-radius-sm: 8px;
  --ft-radius-md: 12px;
  --ft-radius-lg: 16px;
  --ft-transition: 0.2s ease;
  --tool-button-padding-block: 4px;
  --tool-button-padding-inline: 12px;
  --tool-button-font-size: 13px;
  --tool-button-line-height: 1.5;
  --tool-button-radius: var(--ft-radius-sm);
  --tool-button-arrow-width: 30px;
  --tool-icon-button-size: 28px;
  --tool-icon-size: 16px;
  --tool-tip-font-size: 12px;
  --tool-tip-line-height: 1.4;
  --tool-tip-padding-block: 4px;
  --tool-tip-padding-inline: 8px;
  --tool-tip-radius: 6px;
}

:root[data-theme="light"] {
  --bg: #f8fafc;
  --bg-drop: #eff6ff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --text-fainter: #cbd5e1;
  --header-bg: rgba(255, 255, 255, 0.92);
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-soft: #f1f5f9;
  --surface-hover: #f1f5f9;
  --surface-hover-2: #e2e8f0;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --button-bg: #ffffff;
  --button-border: #cbd5e1;
  --button-hover: #f1f5f9;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-tint: rgba(37, 99, 235, 0.08);
  --file-drop-icon: #64748b;
  --file-drop-title: #475569;
  --file-drop-icon-active: var(--accent);
  --file-drop-title-active: var(--accent-strong);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 10px 28px -12px rgba(37, 99, 235, 0.35);
  --tool-tip-bg: rgba(255, 255, 255, 0.96);
  --tool-tip-text: #334155;
  --tool-tip-border: rgba(203, 213, 225, 0.9);
  --tool-tip-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

:root[data-theme="dark"] {
  --bg: #0f172a;
  --bg-drop: #142033;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --text-fainter: #475569;
  --header-bg: rgba(15, 23, 42, 0.92);
  --surface: #1e293b;
  --surface-2: #172033;
  --surface-soft: #111827;
  --surface-hover: #273449;
  --surface-hover-2: #334155;
  --border: #334155;
  --border-strong: #475569;
  --button-bg: #1e293b;
  --button-border: #475569;
  --button-hover: #273449;
  --accent: #60a5fa;
  --accent-strong: #3b82f6;
  --accent-tint: rgba(96, 165, 250, 0.12);
  --file-drop-icon: #94a3b8;
  --file-drop-title: #cbd5e1;
  --file-drop-icon-active: var(--accent);
  --file-drop-title-active: #93c5fd;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 10px 28px -12px rgba(96, 165, 250, 0.45);
  --tool-tip-bg: rgba(15, 23, 42, 0.96);
  --tool-tip-text: #f8fafc;
  --tool-tip-border: rgba(71, 85, 105, 0.8);
  --tool-tip-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

body {
  font-family: var(--ft-font);
}

button,
input,
select {
  font: inherit;
}
