@import "tailwindcss";

:root {
  --bg-primary: #1e1e2e;
  --bg-secondary: #252536;
  --bg-panel: #2a2a3d;
  --text-primary: #cdd6f4;
  --text-secondary: #a6adc8;
  --accent: #89b4fa;
  --border: #45475a;
  --error: #f38ba8;
  --success: #a6e3a1;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Markdown rendering in chat */
.markdown-body { color: var(--text-primary); }
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  color: var(--text-primary); font-weight: 600; margin: 0.6em 0 0.3em;
}
.markdown-body h1 { font-size: 1.1em; }
.markdown-body h2 { font-size: 1em; }
.markdown-body h3 { font-size: 0.95em; }
.markdown-body p { margin: 0.3em 0; line-height: 1.5; }
.markdown-body ul, .markdown-body ol { margin: 0.3em 0; padding-left: 1.2em; }
.markdown-body li { margin: 0.15em 0; }
.markdown-body code {
  background: var(--bg-primary); color: var(--accent);
  padding: 0.1em 0.3em; border-radius: 3px; font-size: 0.85em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.markdown-body pre {
  background: var(--bg-primary); padding: 0.6em 0.8em;
  border-radius: 4px; overflow-x: auto; margin: 0.4em 0;
}
.markdown-body pre code { background: none; padding: 0; color: var(--text-primary); }
.markdown-body table {
  border-collapse: collapse; width: 100%; margin: 0.4em 0; font-size: 0.85em;
}
.markdown-body th, .markdown-body td {
  border: 1px solid var(--border); padding: 0.3em 0.5em; text-align: left;
}
.markdown-body th { background: var(--bg-secondary); color: var(--accent); }
.markdown-body blockquote {
  border-left: 3px solid var(--accent); margin: 0.4em 0;
  padding-left: 0.6em; color: var(--text-secondary);
}
.markdown-body a { color: var(--accent); text-decoration: underline; }
.markdown-body hr { border-color: var(--border); margin: 0.5em 0; }
