/* Obra Control V2 — Unified Design System Tokens */
:root {
  /* Color Palette - Modern Architectural Dark/Slate Theme */
  --bg-app: #0b0f17;
  --bg-surface: #131b2e;
  --bg-card: #182238;
  --bg-card-hover: #1e2b47;
  --bg-muted: #1e293b;
  --bg-accent: #2563eb;
  --bg-accent-hover: #1d4ed8;

  /* Borders & Dividers */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(37, 99, 235, 0.4);

  /* Typography */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-condensed: 'Geist', sans-serif;
  --font-mono: 'Geist Mono', monospace;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #0f172a;

  /* Financial & Status Colors */
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.12);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.12);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.12);
  --color-info: #3b82f6;
  --color-info-bg: rgba(59, 130, 246, 0.12);
  --color-purple: #8b5cf6;
  --color-purple-bg: rgba(139, 92, 246, 0.12);

  /* Chart Colors (S-Curve & Metrics) */
  --chart-plan: #a855f7;
  --chart-physical: #10b981;
  --chart-financial: #3b82f6;

  /* Spacing & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
}

/* Global Reset & Core Body Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

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

/* Tabular Numbers for Financial Calculations */
.tabular-nums,
table td,
.metric-value,
.amount,
.percentage {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Navigation Context Layout (2-Tier System) */
.nav-group-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  padding: 12px 16px 4px 16px;
  margin-top: 8px;
}

/* Workspace Status Badge */
.workspace-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 11px;
  font-weight: 600;
}

/* Clean Card Utility */
.oc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oc-card:hover {
  border-color: var(--border-strong);
}

/* Header & Breadcrumbs */
header .eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-info);
}

header h1 {
  font-family: var(--font-condensed);
  font-size: 26px;
  font-weight: 700;
  margin: 2px 0 0 0;
  letter-spacing: -0.01em;
}
