/* portal/assets/app.css
   Stijl: AI Gebr. van der Lee — gebaseerd op gebrvanderlee.nl
   Palet: rood #ef3e33, geel #ffe01b, donker #1A202C, licht #F7FAFC
   Fonts: Montserrat (body), Oswald (koppen)
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap');

:root{
  --vdl-red:        #ef3e33;
  --vdl-red-dark:   #c8281e;
  --vdl-yellow:     #ffe01b;
  --vdl-dark:       #1A202C;
  --vdl-dark2:      #222222;
  --vdl-grey:       #444444;
  --vdl-muted:      #6b7280;
  --vdl-line:       #e5e7eb;
  --vdl-line2:      #d1d5db;
  --vdl-bg:         #F7FAFC;
  --vdl-surface:    #ffffff;
  --vdl-success:    #13612e;
  --vdl-success-bg: #e6f4ea;
  --vdl-danger:     #b82105;
  --vdl-danger-bg:  #fde7e3;

  --text:           var(--vdl-dark);
  --muted:          var(--vdl-muted);

  --shadow:         0 6px 24px rgba(0,0,0,.08);
  --shadow-lg:      0 15px 35px rgba(0,0,0,.10);
  --radius:         12px;
  --radius-lg:      18px;
  --pill:           9999px;

  --wrap:           1200px;
  --pad:            clamp(16px, 2.6vw, 28px);

  --font-body:      "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head:      "Oswald", "Montserrat", sans-serif;
}

*{ box-sizing: border-box; }
html{ text-size-adjust: 100%; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--vdl-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a{ color: var(--vdl-red); text-decoration: none; }
a:hover{ text-decoration: underline; }
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--vdl-red);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6{
  font-family: var(--font-head);
  color: var(--vdl-dark);
  letter-spacing: .3px;
  line-height: 1.2;
  margin: 0 0 .5em;
}

/* ========== Layout ========== */
.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}
.content{ padding: 24px 0 48px; }

/* ========== Topbar ========== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid var(--vdl-line);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__logo{
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--vdl-line);
  flex: 0 0 auto;
}
.brand__logo img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__text{ display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__title{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--vdl-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.brand__sub{
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.nav{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}


/* ========== Buttons ========== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  background: var(--vdl-dark);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease,
              transform .08s ease, box-shadow .15s ease;
  user-select: none;
  text-decoration: none;
}
.btn:hover{
  background: var(--vdl-grey);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity: .55; cursor: not-allowed; box-shadow: none; }

.btn--primary{
  background: var(--vdl-red);
  color: #fff;
}
.btn--primary:hover{ background: var(--vdl-yellow); color: var(--vdl-dark); }

.btn--ghost{
  background: transparent;
  color: var(--vdl-dark);
  border-color: var(--vdl-line2);
}
.btn--ghost:hover{
  background: var(--vdl-yellow);
  color: var(--vdl-dark);
  border-color: var(--vdl-yellow);
}

.btn--danger{
  background: #fff;
  color: var(--vdl-danger);
  border-color: var(--vdl-danger);
}
.btn--danger:hover{
  background: var(--vdl-danger);
  color: #fff;
}

.btn--lg{
  padding: 14px 24px;
  font-size: 15px;
}
.btn--sm{
  padding: 7px 14px;
  font-size: 13px;
}
.iconbtn{
  padding: 10px 14px;
  min-width: 44px;
}

/* Mobile: hide button text labels to save room (keep icon) */
@media (max-width: 520px){
  .topbar .btn span{ display: none; }
}

/* ========== Cards ========== */
.card{
  background: var(--vdl-surface);
  border: 1px solid var(--vdl-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card--inner{
  padding: 16px;
  border-radius: var(--radius);
}

/* ========== Pagehead / Hero ========== */
.pagehead{
  margin-top: 16px;
}
.pagehead__title{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--vdl-dark);
  margin-bottom: 6px;
}
.pagehead__meta{
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.hero{
  padding: 28px;
  margin-top: 16px;
  border-left: 6px solid var(--vdl-red);
}
.hero__head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__title{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.hero__meta{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.lead{
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--vdl-dark);
}
.sep{ color: var(--vdl-line2); }


/* ========== Pills & Badges ========== */
.pill{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: var(--vdl-bg);
  border: 1px solid var(--vdl-line);
  font-size: 12px;
  font-weight: 600;
  color: var(--vdl-dark);
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: var(--vdl-success-bg);
  border: 1px solid #b7dcc2;
  color: var(--vdl-success);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.badge--neutral{
  background: var(--vdl-bg);
  border-color: var(--vdl-line);
  color: var(--vdl-dark);
}
.badge--rec{
  background: var(--vdl-yellow);
  border-color: #e5c800;
  color: var(--vdl-dark);
}
.badge--ok{
  background: var(--vdl-success-bg);
  border-color: #b7dcc2;
  color: var(--vdl-success);
}
.badge--bad{
  background: var(--vdl-danger-bg);
  border-color: #f5b8ad;
  color: var(--vdl-danger);
}

/* ========== Grids & layout helpers ========== */
.divider{
  height: 1px;
  background: var(--vdl-line);
  margin: 16px 0;
}

.row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.row--end{ align-items: flex-end; }

.stack{ display: flex; gap: 10px; align-items: center; }
.stack--wrap{ flex-wrap: wrap; }
.grow{ flex: 1; min-width: 240px; }

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

.cardhead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cardhead__title{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--vdl-dark);
}

.grid-two{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
@media (max-width: 980px){
  .grid-two{ grid-template-columns: 1fr; }
}

.actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Feature grid (portal dashboard) */
.grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 780px){
  .grid{ grid-template-columns: 1fr; }
}

.feature{
  padding: 20px;
}
.feature__title{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.feature__text{
  color: var(--muted);
  font-size: 14px;
}

/* ========== Form fields ========== */
.label{
  display: block;
  color: var(--vdl-dark);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
}
.field{
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--vdl-line2);
  background: #fff;
  color: var(--vdl-dark);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field:focus{
  border-color: var(--vdl-red);
  box-shadow: 0 0 0 3px rgba(239,62,51,.15);
}
.textarea{ min-height: 120px; resize: vertical; }

@media (max-width: 980px){
  .field{ font-size: 16px; }  /* prevent iOS zoom */
}

.checkline{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  user-select: none;
  color: var(--vdl-dark);
  font-size: 14px;
}
.checkline input{
  margin-top: 3px;
  accent-color: var(--vdl-red);
  transform: scale(1.1);
}

/* ========== Status / hint boxes ========== */
.status{
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--vdl-line);
  background: var(--vdl-bg);
  color: var(--vdl-dark);
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
pre.status{
  font-family: var(--font-body);
}

.hint{
  border: 1px solid var(--vdl-line);
  background: #fffdf0;          /* zachte gele tint */
  border-left: 4px solid var(--vdl-yellow);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--vdl-dark);
  font-size: 13px;
}

.errorBox{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid #f5b8ad;
  background: var(--vdl-danger-bg);
  color: var(--vdl-danger);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ========== Notuleren side logo ========== */
.sideTop{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.logo{
  width: 140px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--vdl-line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 8px;
}

.sectiontitle{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--vdl-dark);
  margin: 10px 0 8px;
}

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.details{
  border: 1px solid var(--vdl-line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
}
.details summary{
  cursor: pointer;
  font-weight: 700;
}

/* ========== Mobile sticky bar (notuleren controls) ========== */
.mobileBar{ display: none; }

@media (max-width: 980px){
  #controlsDesktop{ display: none; }

  .mobileBar{
    display: flex;
    gap: 10px;
    align-items: center;
    position: sticky;
    bottom: 10px;
    z-index: 5;
    padding: 10px;
    margin: 12px auto 0;
    max-width: var(--wrap);
    border: 1px solid var(--vdl-line);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
  }
  .mobileBar .btn{ width: 100%; }
}

/* ========== Compact mobile topbar ========== */
@media (max-width: 980px){
  .topbar__inner{
    padding: 8px 0 !important;
    gap: 8px !important;
  }
  .brand__title{
    font-size: 14px !important;
    line-height: 1.1 !important;
  }
  .brand__sub{ display: none !important; }
  .topbar .btn{
    padding: 6px 12px !important;
    font-size: 13px !important;
  }
}

/* ========== Steps (used on homepage) ========== */
.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.step{
  border: 1px solid var(--vdl-line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}
.step__title{
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--vdl-dark);
}
.step__text{
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 980px){
  .steps{ grid-template-columns: 1fr; }
}

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