/*
 * ui/common/css/base.css
 * ----------------------
 * Design tokens and minimal resets shared across all benchmark dashboards.
 * Each benchmark's own stylesheet loads this first, then overrides as needed.
 *
 * The colour tokens (light + dark) live in theme.css, imported here; pages that do not
 * use base.css (playground/run/, playground/open/, playground/chat/) link theme.css directly.
 *
 * Usage:
 *   <link rel="stylesheet" href="../common/css/base.css">
 *   <link rel="stylesheet" href="css/styles.css">   <!-- benchmark-specific -->
 */

@import url("theme.css");

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

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* -------------------------------------------------------------------------
 * Layout helpers
 * ---------------------------------------------------------------------- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* -------------------------------------------------------------------------
 * Benchmark navigation (used by ui/index.html and optional nav bars)
 * ---------------------------------------------------------------------- */
.benchmark-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.benchmark-nav a {
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  color: var(--nav-fg);
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s;
}

.benchmark-nav a:hover,
.benchmark-nav a.active {
  background: var(--nav-active-bg);
  border-color: var(--nav-active-border);
  color: var(--nav-active-fg);
  text-decoration: none;
}
