/* ==========================================================================
   miCode Studio for iOS - Visual Design Tokens
   Brand: Mante Isaac
   ========================================================================== */

:root {
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;
  --font-brand: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;

  /* Font Sizes */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 18px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  /* Dimensions */
  --navbar-height: 48px;
  --tabs-height: 38px;
  --toolbar-height: 42px;
  --statusbar-height: 24px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme (Default - miChat Obsidian Aesthetic) */
body.theme-micode-dark {
  --bg-app: #08090c;
  --bg-navbar: #0b0d11;
  --bg-sidebar: #0f1217;
  --bg-editor: #0f1217;
  --bg-tabs: #08090c;
  --bg-tab-active: #0f1217;
  --bg-tab-inactive: #0b0d11;
  --bg-panel: #0b0d11;
  --bg-statusbar: #8701fb;
  --bg-surface: #151921;
  --bg-surface-hover: #1c222e;
  --bg-input: #08090c;
  --bg-toolbar: #11141b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: #8701fb;

  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #57606a;
  --text-inverse: #08090c;

  --accent-primary: #8701fb;
  --accent-hover: #9f33ff;
  --accent-active: #7300d6;

  --status-success: #3fb950;
  --status-warning: #d29922;
  --status-danger: #f85149;
  --status-info: #9f33ff;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 38px rgba(0, 0, 0, 0.65);
}

/* Light Theme */
body.theme-micode-light {
  --bg-app: #f4f5f8;
  --bg-navbar: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-editor: #ffffff;
  --bg-tabs: #eef1f5;
  --bg-tab-active: #ffffff;
  --bg-tab-inactive: #e4e7ed;
  --bg-panel: #ffffff;
  --bg-statusbar: #8701fb;
  --bg-surface: #f1f4f8;
  --bg-surface-hover: #e2e7ef;
  --bg-input: #ffffff;
  --bg-toolbar: #e8ecf2;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --border-focus: #8701fb;

  --text-primary: #1f2328;
  --text-secondary: #57606a;
  --text-muted: #8b949e;
  --text-inverse: #ffffff;

  --accent-primary: #8701fb;
  --accent-hover: #9f33ff;
  --accent-active: #7300d6;

  --status-success: #1a7f37;
  --status-warning: #9a6700;
  --status-danger: #cf222e;
  --status-info: #8701fb;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.15);
}
