/* =============================================================================
   rpiWebKit Design System - Theme Variables & Typography
   ČVUT FEL • Úvod do bioinženýrství (UBI)
   ============================================================================= */

:root {
  /* Dark Slate Theme (Default) */
  --bg-body: #0b1120;
  --bg-nav: #070c18;
  --bg-sidebar: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #243248;
  --bg-input: #0b1329;
  --bg-active: #1d3557;
  
  --border-color: #334155;
  --border-subtle: #1e293b;
  --border-focus: #0284c7;

  /* Typography Colors */
  --text-white: #ffffff;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-accent: #38bdf8;

  /* Accent Colors */
  --accent-primary: #0284c7;
  --accent-primary-hover: #0369a1;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-blue: #2563eb;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-rose-hover: #e11d48;
  --accent-purple: #a855f7;

  /* Status Colors */
  --status-connected: #10b981;
  --status-disconnected: #f43f5e;
  --status-busy: #f59e0b;
  --status-running: #38bdf8;

  /* Terminal Colors */
  --terminal-bg: #070c16;
  --terminal-text: #e2e8f0;
  --terminal-prompt: #38bdf8;
  --terminal-info: #94a3b8;
  --terminal-error: #f87171;
  --terminal-success: #34d399;
  --terminal-warn: #fbbf24;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Radii & Shadows */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
}

/* Light Theme Support */
[data-theme="light"] {
  --bg-body: #f1f5f9;
  --bg-nav: #ffffff;
  --bg-sidebar: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #e2e8f0;
  --bg-input: #f8fafc;
  --bg-active: #e0f2fe;

  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;
  --border-focus: #0284c7;

  --text-white: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-accent: #0284c7;

  --terminal-bg: #1e293b;
  --terminal-text: #f8fafc;
  --terminal-prompt: #38bdf8;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
