/* ─── Ona klantportaal — shared styles ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #1d1d1b;
  --ink-2: #4a4a47;
  --muted: #8a8a86;
  --line: rgba(29,29,27,0.08);
  --line-strong: rgba(29,29,27,0.14);
  --accent: #b2ffa0;
  --accent-ink: #1d1d1b;
  --accent-soft: rgba(178,255,160,0.18);
  --accent-border: rgba(76,175,111,0.25);
  --purple: #9b8af0;
  --turquoise: #a2ffe7;
  --danger: #e07a6b;
  --warn: #f0c46b;
  --ok: #4caf6f;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(29,29,27,0.04), 0 8px 32px rgba(29,29,27,0.05);
  --shadow-hover: 0 2px 4px rgba(29,29,27,0.06), 0 16px 40px rgba(29,29,27,0.08);
}

html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── Accent stripe ─────────────────────────────────────────────────────── */
.accent-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--turquoise) 50%, var(--purple) 100%);
}

/* ── Header ────────────────────────────────────────────────────────────── */
/* De hele headerwrapper (accent-stripe + nav + mobiele nav) plakt bovenaan. */
#portal-header {
  position: sticky; top: 0; z-index: 50;
}
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 960px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; gap: 24px;
}
.header-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-logo svg { height: 20px; color: var(--ink); }
.header-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding: 3px 8px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
}
.header-nav { display: flex; gap: 2px; margin-left: 12px; }
.header-nav a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 13.5px; color: var(--ink-2); font-weight: 400;
  transition: background .15s, color .15s;
}
.header-nav a:hover { background: rgba(29,29,27,0.04); color: var(--ink); }
.header-nav a.active { background: var(--ink); color: #fff; font-weight: 500; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.header-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 11px;
}
.header-logout {
  font-size: 13px; color: var(--muted);
  padding: 6px 12px; border-radius: var(--radius-pill);
  transition: background .15s, color .15s;
}
.header-logout:hover { background: rgba(29,29,27,0.04); color: var(--ink); }

/* ── Mobile nav ────────────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 0 24px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-inner { display: flex; gap: 2px; min-width: max-content; padding: 8px 0; }
.mob-link {
  padding: 8px 14px; border-radius: 999px; font-size: 13px;
  color: var(--ink-2); white-space: nowrap; display: inline-block;
}
.mob-link.active { background: var(--ink); color: #fff; font-weight: 500; }

/* ── Page ──────────────────────────────────────────────────────────────── */
.page { max-width: 960px; margin: 0 auto; padding: 36px 24px 80px; }

/* ── Page head ─────────────────────────────────────────────────────────── */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.page-head h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
}
.page-head .subtitle {
  color: var(--muted); font-size: 15px; margin-top: 4px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(178,255,160,0.45); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29,29,27,0.25); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-outline:hover { background: rgba(29,29,27,0.04); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-ghost { padding: 8px 14px; font-size: 13px; color: var(--ink-2); border-radius: var(--radius-pill); }
.btn-ghost:hover { background: rgba(29,29,27,0.04); }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Section headers ───────────────────────────────────────────────────── */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 12px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
}
.section-count { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.section-link {
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  display: flex; align-items: center; gap: 4px; transition: color .15s;
}
.section-link:hover { color: var(--ink); }

/* ── Status badges ─────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.status-badge .dot { width: 5px; height: 5px; border-radius: 50%; }
.status-badge.open { background: rgba(66,133,244,0.12); color: #2a5db0; }
.status-badge.open .dot { background: #4285f4; }
.status-badge.in_progress { background: rgba(240,196,107,0.2); color: #8a5e10; }
.status-badge.in_progress .dot { background: var(--warn); }
.status-badge.waiting { background: rgba(155,138,240,0.14); color: #4f3fb0; }
.status-badge.waiting .dot { background: var(--purple); }
.status-badge.closed { background: rgba(29,29,27,0.06); color: var(--muted); }
.status-badge.closed .dot { background: var(--muted); }
.status-badge.shipped { background: rgba(162,255,231,0.30); color: #1e7a6b; }
.status-badge.shipped .dot { background: #2bbd9e; }
.status-badge.paid { background: rgba(76,175,111,0.12); color: #2e6a1d; }
.status-badge.paid .dot { background: var(--ok); }
.status-badge.pending { background: rgba(29,29,27,0.06); color: var(--muted); }
.status-badge.pending .dot { background: var(--muted); }
.status-badge.new { background: rgba(155,138,240,0.16); color: #4f3fb0; }
.status-badge.new .dot { background: #9b8af0; }
.status-badge.returned { background: rgba(240,196,107,0.28); color: #8a5e10; }
.status-badge.returned .dot { background: #f0c46b; }
.status-badge.cancelled { background: rgba(224,122,107,0.18); color: #a23827; }
.status-badge.cancelled .dot { background: #e07a6b; }
.status-badge.processing { background: rgba(96,179,255,0.18); color: #1a5f99; }
.status-badge.processing .dot { background: #4aa3df; }
.status-badge.delivered { background: rgba(178,255,160,0.40); color: #2e6a1d; }
.status-badge.delivered .dot { background: #4caf6f; }

/* ── Category chip ─────────────────────────────────────────────────────── */
.cat-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500;
  background: rgba(29,29,27,0.05); color: var(--ink-2);
}

/* ── Filter chips ──────────────────────────────────────────────────────── */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-chip {
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: 13px; color: var(--ink-2); cursor: pointer;
  border: 1px solid transparent; transition: all .15s;
}
.filter-chip:hover { background: rgba(29,29,27,0.04); }
.filter-chip.active { background: var(--ink); color: #fff; }

/* ── Empty state ───────────────────────────────────────────────────────── */
.empty {
  padding: 60px 24px; text-align: center; color: var(--muted);
}
.empty-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 15px;
}

/* ── Form ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 6px; color: var(--ink);
}
.form-sub { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px;
  color: var(--ink); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(29,29,27,0.06);
}
.form-textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form-select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a8a86' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}

/* ── File upload area ──────────────────────────────────────────────────── */
.file-drop {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 28px; text-align: center;
  color: var(--muted); font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.file-drop:hover { border-color: var(--ink); background: rgba(29,29,27,0.02); }
.file-drop-icon { margin-bottom: 6px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .header-nav { display: none; }
  .mobile-nav { display: block; }
  .header-inner { height: 56px; }
  .page { padding: 24px 18px 64px; }
  .page-head h1 { font-size: 20px; }
  .header-user span { display: none; }
}
