:root {
  --accent: #e63946;
  --accent-dark: #c1121f;
}

body {
  background: #f1f3f5;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── Navbar ──────────────────────────────────────── */
.navbar {
  background: #111 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.navbar-brand {
  letter-spacing: 1px;
  font-size: 1.2rem;
}
.nav-link {
  font-size: .9rem;
  padding: .5rem .9rem !important;
  border-radius: 6px;
  transition: background .15s;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,.1);
}

/* ── Pages ───────────────────────────────────────── */
.page { min-height: 70vh; }

/* ── Cards ───────────────────────────────────────── */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  border-radius: 12px 12px 0 0 !important;
  font-weight: 600;
}
.benchmark-card .card-header {
  border-left: 4px solid var(--accent);
}

/* ── Badges ──────────────────────────────────────── */
.badge-wod-type {
  background: var(--accent);
  font-size: .7rem;
  letter-spacing: .5px;
}

/* ── Table ───────────────────────────────────────── */
.table-responsive {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  background: #fff;
}
.table { margin-bottom: 0; }
.table thead th {
  background: #222;
  color: #fff;
  font-weight: 500;
  border: none;
  white-space: nowrap;
}
.table tbody tr:hover { background: #fafafa; }

/* ── Rounds table ────────────────────────────────── */
#rounds-table th { font-size: .82rem; }
.reps-input {
  width: 70px;
  text-align: center;
  padding: .25rem .4rem;
  font-size: .9rem;
}
.round-total {
  font-weight: 700;
  color: var(--accent);
}

/* ── Buttons ─────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* ── Exercises list in form ──────────────────────── */
.exercise-row { transition: opacity .15s; }

/* ── Empty state ─────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: #aaa;
}
.empty-state i { font-size: 3rem; display: block; margin-bottom: .75rem; }

/* ── Chart cards ─────────────────────────────────── */
#charts-container .card { background: #fff; }

/* ── Session stats badge ─────────────────────────── */
.stat-pill {
  display: inline-block;
  background: #f1f3f5;
  border-radius: 20px;
  padding: .2rem .7rem;
  font-size: .8rem;
  font-weight: 600;
  color: #333;
}
