/* === Musical SEO — Base Design Tokens === */
/* Dark theme SaaS dashboard — Light blue accent (#38BDF8) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

:root {
  /* — Type Scale — */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* — Fonts — */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* — Spacing — */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* — Dark Theme Colors — */
  --color-bg: #0B0F19;
  --color-bg-raised: #111827;
  --color-bg-overlay: #1A2236;
  --color-bg-surface: #1E293B;
  --color-bg-hover: #243044;
  --color-bg-input: #0F172A;

  --color-border: #1E293B;
  --color-border-subtle: #162032;
  --color-border-hover: #334155;

  --color-text: #F1F5F9;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #64748B;
  --color-text-inverse: #0B0F19;

  /* — Primary Accent: Light Blue — */
  --color-primary: #38BDF8;
  --color-primary-hover: #7DD3FC;
  --color-primary-muted: rgba(56, 189, 248, 0.15);
  --color-primary-text: #38BDF8;

  /* — Semantic Colors — */
  --color-success: #34D399;
  --color-success-muted: rgba(52, 211, 153, 0.15);
  --color-warning: #FBBF24;
  --color-warning-muted: rgba(251, 191, 36, 0.15);
  --color-error: #F87171;
  --color-error-muted: rgba(248, 113, 113, 0.15);

  /* — Radii — */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* — Shadows — */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);

  /* — Transitions — */
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 350ms ease;

  /* — Layout — */
  --sidebar-width: 240px;
  --sidebar-collapsed: 64px;
  --header-height: 56px;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Allow scrolling when landing page (auth-screen) is visible */
html.landing-visible,
html.landing-visible body {
  overflow: auto;
  height: auto;
}

/* — Tabular Nums for Data — */
.tabular-nums {
  font-variant-numeric: tabular-nums lining-nums;
}

/* — Scrollbar — */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border-hover); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* — Selection — */
::selection {
  background: var(--color-primary-muted);
  color: var(--color-primary);
}

/* — Focus — */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

a { color: var(--color-primary-text); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

img, svg { display: block; max-width: 100%; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; }

/* — Utility Classes — */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border- 0;
}
