:root {
  /* Background hierarchy */
  --bg-void: #0a0a0f;
  --bg-surface: #12121a;
  --bg-elevated: #1a1a24;
  --bg-hover: #22222e;
  
  /* Text hierarchy */
  --text-primary: #f0f0f5;
  --text-secondary: #8b8b9a;
  --text-muted: #5a5a6a;
  --text-disabled: #3a3a4a;
  
  /* Semantic colors */
  --accent-cyan: #00d4aa;
  --accent-cyan-dim: rgba(0, 212, 170, 0.2);
  --accent-amber: #ff9f1c;
  --accent-amber-dim: rgba(255, 159, 28, 0.2);
  --accent-red: #ff3864;
  --accent-red-dim: rgba(255, 56, 100, 0.2);
  --accent-purple: #b829dd;
  --accent-purple-dim: rgba(184, 41, 221, 0.2);
  --accent-blue: #2979ff;
  --accent-blue-dim: rgba(41, 121, 255, 0.2);
  
  /* Freshness colors */
  --freshness-fresh: #00d4aa;
  --freshness-recent: #ff9f1c;
  --freshness-warning: #ff6b35;
  --freshness-stale: #ff3864;
  
  /* Borders */
  --border: #2a2a3a;
  --border-subtle: #1f1f2a;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Typography */
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* 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 32px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.5;
}

/* Utility classes */
.text-mono { font-family: var(--font-mono); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.bg-surface { background: var(--bg-surface); }
.bg-elevated { background: var(--bg-elevated); }

/* Status colors */
.status-stable { color: var(--accent-cyan); }
.status-watch { color: var(--accent-amber); }
.status-approaching { color: var(--accent-red); }
.status-critical { color: var(--accent-red); }

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

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

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

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

/* Selection */
::selection {
  background: var(--accent-cyan-dim);
  color: var(--text-primary);
}

/* Data Freshness Indicators */
.freshness-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.875rem;
}

.freshness-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: help;
}

.freshness-fresh {
  color: var(--freshness-fresh);
  background: rgba(0, 212, 170, 0.1);
}

.freshness-recent {
  color: var(--freshness-recent);
  background: rgba(255, 159, 28, 0.1);
}

.freshness-warning {
  color: var(--freshness-warning);
  background: rgba(255, 107, 53, 0.15);
}

.freshness-stale {
  color: var(--freshness-stale);
  background: rgba(255, 56, 100, 0.15);
}

.date-range {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
}

.date-range-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-range-value {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* Header freshness placement */
.header-freshness {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .header-freshness {
    display: none;
  }
}
