/* IT Career Tracker — Variant 1 "Command" */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #0b0d12;
  color: #e6e9f0;
  min-height: 100vh;
  transition: background .35s ease, color .35s ease;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 24px 20px 60px; }

/* ---------- Header ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid #262c3b;
  background: #12151d;
  margin: -24px -20px 22px;   /* vult .wrap-afstand op voor flush-breedte */
  overflow: hidden;           /* ← geen content buiten de topbar */
  min-width: 0;
}
.topbar .logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 14px; }
.topbar .name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.topbar .sub { font-size: 11px; color: #9aa3b5; }
.topbar .spacer { flex: 1; min-width: 0; }
.topbar a { color: #93c5fd; text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap; }

/* ---------- Hero / head ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.head h1 { font-size: 24px; letter-spacing: -0.02em; }
.head .sub { color: #9aa3b5; font-size: 13.5px; margin-top: 4px; }
.head .actions { display: flex; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 10px;
  border: 1px solid #262c3b; background: #181c27; color: #e6e9f0; cursor: pointer;
}
.btn.primary { background: #3b82f6; border-color: #3b82f6; color: #0a1020; }
.btn.small { font-size: 12px; padding: 6px 12px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: #12151d; border: 1px solid #262c3b; border-radius: 12px; padding: 14px; }
.stat .n { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.stat .n .live { color: #34d399; }
.stat .t { font-size: 11.5px; color: #9aa3b5; margin-top: 2px; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  font-size: 12.5px; padding: 6px 13px; border-radius: 999px; border: 1px solid #262c3b;
  background: #12151d; color: #9aa3b5; cursor: pointer;
}
.chip.on { border-color: #3b82f6; color: #93c5fd; background: rgba(59,130,246,.1); }

/* ---------- Timeline ----------
   Geometrie (gemeten in headless Chrome @1280px):
   Lijn: .tl::before left=16, w=2 → midden op tl-left + 17.
   Alle markers zijn zo verschoven dat hun midden exact op de lijn komt:
   - .year::before:  left=8,  totale w=18 → midden op tl-left + 8 + 9  = 17 ✓
   - .item::before:  left=-33, totale w=14 (rel. padding-box) → midden = 17 ✓ */
.tl { position: relative; padding-left: 42px; }
.tl::before { content: ""; position: absolute; left: 16px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(#3b82f6, transparent); opacity: .5; }
.year { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #e6e9f0; margin: 22px 0 12px -42px; padding-left: 34px; position: relative; }
.year:first-child { margin-top: 0; }
.year::before { content: ""; position: absolute; left: 8px; top: 1px; width: 14px; height: 14px; border-radius: 50%; background: #0b0d12; border: 2px solid #3b82f6; }
.item { position: relative; display: block; background: #12151d; border: 1px solid #262c3b; border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.item:hover { border-color: #3b82f6; }
.item::before { content: ""; position: absolute; left: -33px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: #9aa3b5; border: 2px solid #0b0d12; }
.item.open::before { background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.5); animation: pulse-c 2s infinite; }
@keyframes pulse-c { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.45)} 70%{box-shadow:0 0 0 8px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }
.item .row1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item h3 { font-size: 14.5px; font-weight: 650; }
.item .org { color: #9aa3b5; font-size: 12.5px; margin-top: 2px; }
.item .desc { color: #9aa3b5; font-size: 12.5px; margin-top: 7px; line-height: 1.5; }
.item .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.item .tags span { font-size: 11px; color: #9aa3b5; background: #181c27; border: 1px solid #262c3b; padding: 2px 9px; border-radius: 999px; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid; }
.b-werk { color: #93c5fd; background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.35); }
.b-studie { color: #c4b5fd; background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.35); }
.b-cert { color: #6ee7b7; background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.35); }
.b-hobby { color: #f9a8d4; background: rgba(236,72,153,.12); border-color: rgba(236,72,153,.35); }
.b-tool { color: #fcd34d; background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.35); }
.b-open { color: #34d399; }
.b-done { color: #9aa3b5; }
.item .dates { margin-left: auto; font-size: 11.5px; color: #9aa3b5; white-space: nowrap; }

/* ---------- Competenties ---------- */
.comp h2 { font-size: 16px; margin-bottom: 4px; }
.comp .sub { color: #9aa3b5; font-size: 12.5px; margin-bottom: 14px; }
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comp-card { background: #12151d; border: 1px solid #262c3b; border-radius: 12px; padding: 14px; }
.comp-card .top { display: flex; align-items: center; gap: 8px; }
.comp-card h3 { font-size: 13.5px; font-weight: 650; }
.comp-card .yrs { margin-left: auto; font-size: 11.5px; color: #9aa3b5; }
.comp-card .lvl { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.lvl-dots { display: flex; gap: 3px; }
.lvl-dots i { width: 8px; height: 8px; border-radius: 50%; background: #181c27; border: 1px solid #262c3b; }
.lvl-dots i.f { background: #3b82f6; border-color: #3b82f6; }
.lvl-txt { font-size: 11.5px; color: #9aa3b5; }
.comp-card .ctx { font-size: 11.5px; color: #9aa3b5; margin-top: 8px; opacity: .8; }

/* ---------- Forms ---------- */
.form { margin-top: 24px; background: #12151d; border: 1px solid #262c3b; border-radius: 14px; padding: 18px; }
.form h2 { font-size: 15px; margin-bottom: 12px; }
.form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: block; font-size: 11.5px; font-weight: 600; color: #9aa3b5; margin-bottom: 5px; }
.form input, .form select, .form textarea {
  width: 100%; background: #181c27; border: 1px solid #262c3b; color: #e6e9f0;
  border-radius: 9px; padding: 9px 11px; font: inherit; font-size: 13px;
}
.form textarea { min-height: 70px; resize: vertical; }
.form .full { grid-column: 1 / -1; }
.form .rowbtns { display: flex; gap: 8px; grid-column: 1 / -1; justify-content: flex-end; }
.form .err { grid-column: 1 / -1; font-size: 12px; color: #f87171; }

/* ---------- Tables ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #9aa3b5; padding: 8px 10px; border-bottom: 1px solid #262c3b; }
table.tbl td { padding: 10px; border-bottom: 1px solid #1c2130; vertical-align: top; }
table.tbl tr:hover td { background: rgba(59,130,246,.03); }

/* ---------- Admin layout ---------- */
.admin-layout { display: grid; grid-template-columns: 210px 1fr; gap: 22px; }

/* Admin sidebar: sticky, zet overflow-x hidden zodat niets buiten de sidebar kan lekken */
.admin-side {
  position: sticky; top: 64px; align-self: start;
  display: flex; flex-direction: column; gap: 16px;
  overflow-x: hidden;         /* ← containment */
}
.admin-brand { background: #12151d; border: 1px solid #262c3b; border-radius: 14px; padding: 14px; overflow-x: hidden; }
.admin-brand .logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 15px; }
.admin-brand h2 { font-size: 14px; margin-top: 10px; }
.admin-brand p { font-size: 11px; color: #9aa3b5; overflow: hidden; text-overflow: ellipsis; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 10px; color: #9aa3b5; text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden;
}
.admin-nav a.active { background: rgba(59,130,246,.12); color: #93c5fd; }

/* Admin main: alle children mogen niet overflowen */
main { overflow-x: hidden; min-width: 0; }

/* ---------- Cards (admin list) ---------- */
.card { background: #12151d; border: 1px solid #262c3b; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; overflow: hidden; }
.card .row1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card h3 { font-size: 14.5px; font-weight: 650; }
.card .meta { color: #9aa3b5; font-size: 12px; margin-top: 3px; }
.card .actions { display: flex; gap: 8px; margin-left: auto; }

/* ---------- Page head ---------- */
.page-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
  overflow: hidden; min-width: 0;
}
.page-head h1 { font-size: 24px; letter-spacing: -0.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.page-head .sub { color: #9aa3b5; font-size: 13.5px; margin-top: 4px; }

/* ---------- Misc ---------- */
.muted { color: #9aa3b5; }
.small-text { font-size: 12px; color: #9aa3b5; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.flex { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; }
.right { margin-left: auto; }
.empty { text-align: center; color: #9aa3b5; padding: 40px 20px; font-size: 13px; }

/* ---------- Login ---------- */
/* ---------- Login ---------- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: radial-gradient(900px 500px at 50% -10%, rgba(59,130,246,.16), transparent 60%), #0b0d12; }
.login-card { width: 100%; max-width: 400px; margin: 40px 20px; background: #12151d; border: 1px solid #262c3b; border-radius: 18px; padding: 34px 30px 26px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.login-emblem { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 14px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #fff; box-shadow: 0 8px 24px rgba(59,130,246,.35); }
.login-card h1 { font-size: 21px; letter-spacing: -0.01em; }
.login-card .sub { color: #9aa3b5; font-size: 12.5px; margin: 5px 0 22px; }
.login-form { text-align: left; }
.lfield { margin-bottom: 15px; }
.lfield label { display: block; font-size: 11.5px; font-weight: 650; color: #9aa3b5; margin-bottom: 6px; letter-spacing: .03em; }
.linput { display: flex; align-items: center; gap: 9px; background: #181c27; border: 1px solid #262c3b; border-radius: 10px; padding: 0 12px; transition: border-color .15s; }
.linput:focus-within { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.linput .ic { width: 16px; height: 16px; color: #9aa3b5; flex: none; }
.linput input { flex: 1; background: none; border: none; outline: none; color: #e6e9f0; font: inherit; font-size: 13.5px; padding: 11px 0; }
.linput input::placeholder { color: #5a6275; }
.peek { background: none; border: none; cursor: pointer; font-size: 14px; opacity: .55; padding: 4px; line-height: 1; }
.peek:hover { opacity: 1; }
.login-btn { width: 100%; margin-top: 4px; padding: 12px; font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.login-foot { margin-top: 18px; }
.login-foot a { color: #9aa3b5; font-size: 12.5px; text-decoration: none; }
.login-foot a:hover { color: #93c5fd; }
.login-error { background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.35); color: #f87171; font-size: 12.5px; padding: 9px 12px; border-radius: 9px; margin-bottom: 14px; text-align: left; }

/* ---------- Competence bar (CV) ---------- */
.comp-bar { height: 7px; background: #181c27; border-radius: 999px; margin-top: 12px; overflow: hidden; }
.comp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, #8b5cf6); }

/* ---------- CV ---------- */
.cv-note { font-size: 12px; color: #9aa3b5; margin-bottom: 14px; }
.cv-page { background: #fff; color: #1d2129; border: 1px solid #d8dbe0; border-radius: 4px; padding: 42px 46px; box-shadow: 0 4px 24px rgba(20,30,50,.08); }
.cv-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid #3b82f6; padding-bottom: 16px; margin-bottom: 22px; }
.cv-head h1 { font-size: 30px; letter-spacing: -0.01em; font-weight: 700; }
.cv-head .role { font-size: 14px; color: #5b6472; margin-top: 5px; }
.cv-head .contact { text-align: right; font-size: 12px; color: #5b6472; line-height: 1.7; }
.cv-cols { display: grid; grid-template-columns: 1fr 250px; gap: 36px; }
.cv-h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #3b82f6; font-weight: 700; margin: 20px 0 12px; }
.cv-entry { position: relative; padding: 0 0 18px 22px; border-left: 2px solid #2a2f38; }
.cv-entry::before { content: ""; position: absolute; left: -8px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #11151b; border: 2px solid var(--blue); }
.cv-entry.now::before { background: #2f855a; border-color: #2f855a; }
.cv-entry.now .when::after { content: " · nu actief"; color: #2f855a; font-weight: 600; }
.cv-entry .t1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cv-entry h3 { font-size: 15.5px; font-weight: 700; }
.cv-entry .when { font-size: 12px; color: #5b6472; }
.cv-entry .where { font-size: 12.5px; color: #5b6472; margin-top: 1px; }
.cv-entry p { font-size: 13px; line-height: 1.55; color: #3a4150; margin-top: 6px; }
.cv-entry .cat { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3b82f6; margin-top: 4px; }
.cv-skill { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.cv-skill .nm { width: 100px; font-size: 12.5px; font-weight: 600; }
.cv-skill .bar { flex: 1; height: 6px; background: #e9ecf1; border-radius: 999px; overflow: hidden; }
.cv-skill .bar i { display: block; height: 100%; background: #3b82f6; border-radius: 999px; }
.cv-skill .lv { font-size: 11px; color: #5b6472; width: 86px; text-align: right; }
.cv-sec { background: #fff; border: 1px solid #d8dbe0; padding: 30px 46px; margin-top: 18px; border-radius: 4px; }
.cv-sec .head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d8dbe0; padding-bottom: 12px; margin-bottom: 16px; }
.cv-sec h2 { font-size: 16px; font-weight: 700; }
.cv-sec .pdfbtn { background: #3b82f6; color: #fff; border: none; padding: 7px 16px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .comp-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .cv-cols { grid-template-columns: 1fr; }
  .form .grid { grid-template-columns: 1fr; }
  /* Op smal: topbar mag horizontaal scrollen i.p.v. overflowen */
  .topbar { overflow-x: auto; }
  /* H1 in page-head mag truncaten i.p.v. duwen */
  .page-head h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
