/* ═══ Tahoe Theme — Modern Clean Design ═══ */

:root {
  /* Colors */
  --bg: #0a0a0a;
  --win: #141414;
  --fill: #1a1a1a;
  --fill-2: #222222;
  --fill-3: #2a2a2a;
  
  --text: #e5e5e5;
  --text-2: #a3a3a3;
  --text-3: #737373;
  
  --sep: #2a2a2a;
  
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-tint: rgba(59, 130, 246, 0.1);
  --accent-tint-2: rgba(59, 130, 246, 0.2);
  --accent-ring: rgba(59, 130, 246, 0.4);
  
  --green: #10b981;
  --green-tint: rgba(16, 185, 129, 0.1);
  
  --red: #ef4444;
  --red-tint: rgba(239, 68, 68, 0.1);
  
  --orange: #f59e0b;
  --orange-tint: rgba(245, 158, 11, 0.1);
  
  --purple: #8b5cf6;
  --teal: #14b8a6;
  
  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  --mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  
  /* Border Radius */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;
  
  /* Shadows */
  --sh-card: 0 1px 3px rgba(0, 0, 0, 0.3);
  --sh-win: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  /* Transitions */
  --t: 0.15s ease;
  --t-slow: 0.3s ease;
}

/* Light mode */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --win: #ffffff;
    --fill: #f5f5f5;
    --fill-2: #e5e5e5;
    --fill-3: #d4d4d4;
    
    --text: #171717;
    --text-2: #525252;
    --text-3: #737373;
    
    --sep: #e5e5e5;
    
    --sh-card: 0 1px 3px rgba(0, 0, 0, 0.1);
    --sh-win: 0 8px 32px rgba(0, 0, 0, 0.12);
  }
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--fill);
}

::-webkit-scrollbar-thumb {
  background: var(--fill-3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-3);
}

/* Selection */
::selection {
  background: var(--accent-tint-2);
  color: var(--text);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t);
}

a:hover {
  color: var(--accent-dark);
}

/* Buttons */
button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Inputs */
input, textarea, select {
  font-family: var(--font);
  background: var(--fill);
  border: 1px solid var(--sep);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 8px 12px;
  transition: border-color var(--t);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
}

/* Code */
code, pre {
  font-family: var(--mono);
  background: var(--fill);
  border-radius: var(--r-sm);
}

code {
  padding: 2px 6px;
  font-size: 0.9em;
}

pre {
  padding: 12px;
  overflow-x: auto;
}
