/* =====================================================================
   assets/css/portaal.css  -  Klantportaal Virtual Adventures
   ===================================================================== */

:root {
  --ink: #1d1530;
  --muted: #5f5775;
  --line: #e7e2f1;
  --ground: #f6f4fa;
  --card: #ffffff;
  --violet: #6E4DFF;
  --violet-dark: #4f32d6;
  --pink: #FF5A8B;
  --grad: linear-gradient(90deg, #6E4DFF, #FF5A8B);
  --done-bg: #dcfce7;  --done-fg: #14532d;  --done-dot: #15803d;
  --busy-bg: #fde7f3;  --busy-fg: #9d174d;  --busy-dot: #db2777;
  --plan-bg: #efebf7;  --plan-fg: #3b2f5c;  --plan-dot: #c4b9dc;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--ground);
  color: var(--ink);
  line-height: 1.5;
}

a { color: var(--violet-dark); }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

h1, h2, p { margin: 0; }

.pt-muted { color: var(--muted); }
.pt-small { font-size: 13px; }

/* ---------- Merk ---------- */
.pt-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink); text-decoration: none;
}
.pt-logo { display: block; height: 38px; width: auto; max-width: 200px; object-fit: contain; }
.pt-brand-fallback { align-items: center; gap: 10px; }
.pt-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}

/* ---------- Knoppen ---------- */
.pt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--grad); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
}
.pt-btn:hover { filter: brightness(1.06); }
.pt-btn-ghost {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 14px;
  border: 1px solid #d9d1ea; border-radius: 10px; background: #fff;
  color: var(--ink); font-weight: 600; text-decoration: none;
}

/* ---------- Formulieren ---------- */
.pt-form { display: flex; flex-direction: column; gap: 14px; }
.pt-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.pt-form input,
.pt-form textarea {
  font: inherit; font-weight: 400; font-size: 15px;
  padding: 12px 14px; border: 1px solid #d9d1ea; border-radius: 12px;
  background: #fff; color: var(--ink);
}
.pt-form textarea { resize: vertical; min-height: 90px; }

/* ---------- Meldingen ---------- */
.pt-alert { padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.pt-alert-ok  { background: var(--done-bg); color: var(--done-fg); }
.pt-alert-err { background: #fee2e2; color: #7f1d1d; }

/* ---------- Login ---------- */
.pt-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.pt-login-card {
  width: 100%; max-width: 420px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 36px 32px; display: flex; flex-direction: column; gap: 16px;
}
.pt-login-card h1 { font-size: 28px; font-weight: 800; margin-top: 8px; }

/* ---------- Header ---------- */
.pt-adminbar {
  background: var(--ink); color: #fff; font-size: 14px;
  padding: 10px 24px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.pt-adminbar a { color: #fff; font-weight: 700; }

.pt-header {
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 56px);
  flex-wrap: wrap;
}
.pt-user { display: flex; align-items: center; gap: 14px; font-size: 14px; flex-wrap: wrap; }

/* ---------- Hoofdinhoud ---------- */
.pt-main {
  max-width: 860px; margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 32px) 80px;
  display: flex; flex-direction: column; gap: 20px;
}
.pt-main-wide { max-width: 1400px; }
.pt-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.pt-intro { display: flex; flex-direction: column; gap: 6px; }
.pt-no { font-size: 14px; font-weight: 700; color: var(--violet-dark); }
.pt-intro h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; line-height: 1.15; }
.pt-h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }

.pt-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px;
}

/* ---------- Voortgang ---------- */
.pt-progress-mini { width: 320px; max-width: 100%; display: flex; flex-direction: column; gap: 8px; }
.pt-progress-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.pt-progress-row strong { font-size: 20px; font-weight: 800; }
.pt-progress { height: 10px; border-radius: 99px; background: #ece7f5; overflow: hidden; }
.pt-progress > span { display: block; height: 100%; border-radius: 99px; background: var(--grad); }

.pt-project { border-left: 0; }
.pt-project-text { white-space: pre-line; max-width: 80ch; color: #374151; }

.pt-undated { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Gekozen onderdeel ---------- */
.pt-detail { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; scroll-margin-top: 20px; }
.pt-detail-info { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pt-detail-info h2 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.pt-desc { font-size: 14px; color: var(--muted); white-space: pre-line; }
.pt-detail-notes { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pt-detail-notes h3 { margin: 0; font-size: 15px; font-weight: 700; }

.pt-pill {
  display: inline-flex; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700;
  background: var(--plan-bg); color: var(--plan-fg);
}
.pt-pill.st-afgerond { background: var(--done-bg); color: var(--done-fg); }
.pt-pill.st-bezig    { background: var(--busy-bg); color: var(--busy-fg); }

/* ---------- Aantekeningen ---------- */
.pt-note { padding: 12px 14px; border-radius: 12px; }
.pt-note.is-va       { background: var(--ground); }
.pt-note.is-customer { background: #f1ecff; }
.pt-note-meta { font-size: 12px; font-weight: 700; color: var(--muted); }
.pt-note.is-customer .pt-note-meta { color: var(--violet-dark); }
.pt-note-body { margin-top: 4px; white-space: pre-line; }
.pt-note-form { margin-top: 6px; }
.pt-note-form .pt-btn { align-self: flex-start; }

/* ---------- Mobiel ---------- */
@media (max-width: 760px) {
  .pt-detail { grid-template-columns: 1fr; gap: 20px; }
  .pt-progress-mini { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
