/**
 * bon-dark.css — Varmt lyst tema for BonTools
 * Inspireret af varemodtagelsens palette
 * Bruges af: Grocy tools, Index, Leveringsberegner
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,300;9..144,600;9..144,800&display=swap');

:root {
  --bg: #f5f4f2;
  --surface: #ffffff;
  --surface-hover: #f9f7f4;
  --border: #d7d1ca;
  --text: #333333;
  --text-dim: #777770;
  --accent: #c9a227;
  --accent-dim: rgba(142, 99, 31, 0.08);

  /* Brand */
  --brown: #8e631f;
  --brown-light: #a67c3d;
  --yellow: #f1e6b2;
  --yellow-light: #f7f2d9;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ── Form elements ──────────────────────────── */
input, select, textarea {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

input::placeholder, textarea::placeholder {
  color: var(--text-dim);
}

/* ── Button variants ────────────────────────── */
.btn-secondary {
  background: var(--bg);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #eae6e0;
  border-color: #bbb5ac;
}

/* ── Status dots ────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status.ok      { background: rgba(39, 174, 96, 0.12); color: #1a8a46; }
.status.ok .status-dot      { background: var(--success); }
.status.error   { background: rgba(231, 76, 60, 0.12); color: #c0392b; }
.status.error .status-dot   { background: var(--error); }
.status.warning { background: rgba(243, 156, 18, 0.12); color: #b37a00; }
.status.warning .status-dot { background: var(--warning); }
.status.unknown { background: rgba(139, 143, 154, 0.1); color: var(--text-dim); }
.status.unknown .status-dot { background: #aaa; }

/* ── Cards ──────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── Links ──────────────────────────────────── */
a { color: var(--brown); text-decoration: none; }
a:hover { text-decoration: underline; }
