@import url("tokens-fonts.css");
@import url("tokens-colors.css");
@import url("tokens-typography.css");
@import url("tokens-radius.css");

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: linear-gradient(160deg, #EAF4D8 0%, #D7EFC0 45%, #C7E89E 100%);
  font-family: var(--font-body);
  color: var(--text-body);
  min-height: 100vh;
  padding: 0 0 60px;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Sticky Natureplay nav */
.npnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--wood-800);
  border-bottom: 2px solid var(--wood-900);
  box-shadow: 0 6px 20px rgba(74, 53, 36, 0.28);
}
.npnav .rij {
  max-width: 1180px; margin: 0 auto;
  padding: 12px 24px 10px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; row-gap: 10px;
}
.npnav img {
  height: 48px; width: auto; display: block;
  filter: drop-shadow(0 2px 6px rgba(20, 26, 10, 0.5));
}
.npnav .lbl {
  font-family: var(--font-display); font-weight: 600;
  color: var(--wood-100); font-size: 14px; letter-spacing: 0.02em;
}
.npnav .tagline {
  font-family: var(--font-script); font-weight: 700;
  color: var(--leaf-200); font-size: 17px; margin-left: 4px;
}
.npnav .lks {
  flex: 1 0 100%; order: 9;
  display: flex; gap: 6px 7px; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 13px;
  padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.npnav .lks a, .npnav .lks button.tab {
  color: var(--wood-100); padding: 6px 11px; border-radius: var(--radius-pill);
  text-decoration: none; min-height: 32px; display: inline-flex; align-items: center;
  border: 0; background: transparent; font: inherit; cursor: pointer;
}
.npnav .lks a:hover, .npnav .lks button.tab:hover {
  background: rgba(255, 255, 255, 0.13); color: #fff;
}
.npnav .lks a.aan, .npnav .lks button.tab.is-active {
  color: var(--leaf-900); background: var(--leaf-300); padding: 6px 13px; font-weight: 600;
}
.npnav .btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--leaf-600); color: var(--wood-50); border: none;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  padding: 9px 16px; border-radius: var(--radius-pill); cursor: pointer;
  box-shadow: var(--shadow-sm); text-decoration: none; white-space: nowrap; margin-left: auto;
}
.npnav .btn:hover { background: var(--leaf-700); color: var(--wood-50); }
.npnav .meta {
  margin-left: auto; font-size: 12px; color: var(--wood-200);
  background: rgba(255, 255, 255, 0.08); border-radius: var(--radius-pill);
  padding: 7px 12px;
}

/* Cover strip */
.npcover {
  position: relative; min-height: 180px;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, #7FA845 0%, #5E8A2E 22%, #41631F 45%, #2C4714 68%, #3E3A1C 84%, #5A4525 100%);
  color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.npcover .in {
  max-width: 1180px; margin: 0 auto; width: 100%;
  padding: 28px 24px 30px; position: relative; z-index: 2;
}
.npcover h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 4vw, 42px); line-height: 1.08; margin: 0 0 8px; color: #fff;
}
.npcover .ref { font-size: 14px; color: rgba(255, 255, 255, 0.9); line-height: 1.5; margin: 0; }
.npcover .wel {
  font-family: var(--font-script); font-weight: 700; font-size: 19px;
  color: var(--leaf-200); margin-top: 8px;
}

/* Section heads */
.npsec { display: flex; align-items: center; gap: 13px; margin: 28px 0 12px; }
.npsec .nr {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; background: var(--leaf-600); color: var(--wood-50);
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.npsec h2 {
  font-family: var(--font-display); font-weight: 600; color: var(--text-strong);
  font-size: 26px; margin: 0; line-height: 1.15;
}

.view { display: none; }
.view.is-active { display: block; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 16px;
}
.toolbar input, .toolbar select,
.modal-body input, .modal-body select, .modal-body textarea {
  font: 500 13.5px/1.4 var(--font-body);
  border: 1.5px solid var(--border-default);
  background: #fff; border-radius: var(--radius-md);
  padding: 9px 12px; color: var(--text-body);
}
.toolbar input[type="search"] { min-width: min(280px, 100%); flex: 1; }
.week-label {
  margin: 0; min-width: 210px; text-align: center;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--text-strong);
}

.btn {
  border: 0; border-radius: var(--radius-pill);
  padding: 9px 15px; font: 600 13px var(--font-display);
  background: var(--leaf-600); color: var(--wood-50); cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--leaf-700); }
.btn-ghost {
  background: #fff; color: var(--leaf-800);
  border: 1.5px solid var(--border-default); box-shadow: none;
}
.btn-danger {
  background: #fff; color: var(--danger);
  border: 1.5px solid #e8b4a8; box-shadow: none;
}

/* Project emblems — same stacked cards as Projecten.html */
.pe-groep { margin: 0 0 20px; }
.pe-kop { display: flex; align-items: baseline; gap: 11px; margin: 0 0 11px; }
.pe-kop b {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--wood-900); white-space: nowrap;
}
.pe-kop .tel {
  font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--leaf-100); color: var(--leaf-700);
  border-radius: var(--radius-pill); padding: 3px 9px; white-space: nowrap;
}
.pe-kop::after { content: ""; flex: 1; height: 1.5px; background: var(--border-subtle); }
.pe-r { display: flex; flex-direction: column; gap: 5px; }

.pj {
  display: block; background: var(--surface-card);
  border: 1.5px solid var(--border-subtle); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); transition: border-color 0.16s, box-shadow 0.16s;
}
.pj:hover { border-color: var(--leaf-500); }
.pj[open] { box-shadow: var(--shadow-md); border-color: var(--leaf-500); }
.pj summary {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 13px; cursor: pointer; list-style: none;
}
.pj summary::-webkit-details-marker { display: none; }
.pj .kol { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pj .embleem {
  width: 34px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: #fff; line-height: 1;
  clip-path: polygon(50% 0, 100% 14%, 100% 62%, 50% 100%, 0 62%, 0 14%);
  box-shadow: 0 3px 8px rgba(20, 26, 10, 0.28);
}
.pj .embleem.streep {
  background: repeating-linear-gradient(45deg, var(--k, #4E7727), var(--k, #4E7727) 3px, rgba(255,255,255,.55) 3px, rgba(255,255,255,.55) 6px) !important;
}
.pj .tk { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
.pj .tk b {
  flex: 1 1 260px; min-width: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  line-height: 1.3; color: var(--text-strong);
}
.pj .zp { display: flex; flex-wrap: wrap; gap: 6px; }
.pj .pijl { flex: 0 0 auto; margin-left: auto; font-size: 12px; color: var(--text-muted); transition: transform 0.16s; }
.pj[open] .pijl { transform: rotate(90deg); }
.pj .in { padding: 0 15px 13px 54px; }
.pj em {
  display: block; font-style: normal; font-size: 12.5px; line-height: 1.55;
  color: var(--text-body);
}
.pj .prt {
  display: inline-block; margin-top: 9px; margin-right: 10px; padding: 0;
  background: none; border: 0; border-bottom: 1px solid var(--leaf-300);
  font: inherit; font-size: 11.5px; font-weight: 600; color: var(--leaf-700); cursor: pointer;
}
.pj .prt:hover { color: var(--leaf-900); border-bottom-color: var(--leaf-600); }

.prio {
  display: inline-flex; align-items: center; gap: 4px; margin-right: 8px;
  padding: 1px 9px; border-radius: 999px; background: #F4D27A; border: 1px solid #D9AE3C;
  color: #5A3D00; font-size: 0.78em; font-weight: 700; vertical-align: middle;
}
.dlp {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: var(--leaf-100); color: var(--leaf-700);
}
.dlp.wd { background: var(--leaf-100); color: var(--leaf-700); }
.dlp.warn { background: #FFF1CF; color: #6B4E12; }

/* Agenda week — keep usable, Natureplay colors */
.week {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px;
}
.day {
  background: var(--surface-card); border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md); min-height: 260px; padding: 10px;
  display: flex; flex-direction: column; gap: 7px; box-shadow: var(--shadow-xs);
}
.day.is-today { border-color: var(--leaf-600); box-shadow: 0 0 0 2px rgba(78, 119, 39, 0.22); }
.day-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--text-strong);
}
.day-head small { color: var(--text-muted); font-family: var(--font-body); font-weight: 700; }
.item {
  background: var(--sand-50); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 8px 9px; font-size: 12.5px; cursor: pointer; line-height: 1.35;
}
.item.task { border-left: 3px solid var(--leaf-400); }
.item.appt { border-left: 3px solid var(--leaf-700); }
.item.done { opacity: 0.55; text-decoration: line-through; }
.item strong { display: block; font-size: 11.5px; color: var(--leaf-800); font-family: var(--font-display); }
.day-note {
  margin-top: auto; font-size: 12px; color: var(--text-muted);
  border-top: 1px dashed var(--border-subtle); padding-top: 8px; cursor: pointer;
}

/* Deadlines */
.list { display: grid; gap: 6px; }
.row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: start;
  background: var(--surface-card); border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 11px 14px; cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.row:hover { border-color: var(--leaf-500); }
.row .due { font-weight: 700; color: var(--leaf-700); font-family: var(--font-display); }
.row .due.late { color: var(--danger); }
.row h4 { margin: 0 0 4px; font-size: 14.5px; font-family: var(--font-display); color: var(--text-strong); }
.row p { margin: 0; color: var(--text-muted); font-size: 12.5px; }
.chip {
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--leaf-100); color: var(--leaf-700);
}

.modal { border: 0; padding: 0; background: transparent; max-width: 560px; width: calc(100% - 24px); }
.modal::backdrop { background: rgba(33, 54, 15, 0.45); }
.modal-card {
  background: var(--wood-50); border-radius: 18px; border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal-card > header, .modal-card > footer {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px;
}
.modal-card > header { background: var(--wood-800); color: var(--wood-50); }
.modal-card > footer { background: var(--sand-100); }
.modal-card h3 { margin: 0; flex: 1; font-family: var(--font-display); font-size: 18px; }
.icon-x { border: 0; background: transparent; color: inherit; font-size: 1.4rem; cursor: pointer; width: 36px; height: 36px; }
.modal-body { padding: 16px; display: grid; gap: 10px; }
.modal-body label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.modal-body textarea { min-height: 90px; resize: vertical; }
.grow { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--wood-900); color: var(--wood-50); padding: 10px 16px;
  border-radius: var(--radius-pill); font-size: 0.9rem; z-index: 50; box-shadow: var(--shadow-md);
}

.uitleg { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin: 0 0 16px; max-width: 62ch; }

@media (max-width: 960px) {
  .week { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap, .npnav .rij, .npcover .in { padding-left: 14px; padding-right: 14px; }
  .week { grid-template-columns: 1fr; }
  .npnav img { height: 36px; }
  .pj .in { padding-left: 15px; }
}
