/* Ontwerp app layout — kleine overrides, de rest komt uit styles.css */

.page-ontwerp .container{
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 20px 40px;
}

.page-ontwerp .hero.compact{
  padding: 14px 16px;
  border-radius: 18px;
  margin-bottom: 14px;
}

.designer-layout{
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px){
  .designer-layout{grid-template-columns: 1fr;}
}

.panel .card{
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  padding: 14px 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

.panel h2{
  margin: 0 0 10px;
  font-size: 18px;
}

.field{
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.field.inline{
  margin: 0;
}

.field.inline span{
  font-size: 12px;
  opacity: .75;
}

.field > span{
  font-size: 13px;
  opacity: .85;
}

.field input[type="range"]{
  width: 100%;
}

.tool-row{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

@media (max-width: 420px){
  .tool-row{grid-template-columns: 1fr;}
}

.btn{
  appearance: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary{
  background: #c41e3a;
  border-color: #c41e3a;
  color: #fff;
}

.btn.ghost{
  background: transparent;
}

.btn:active{transform: translateY(1px);}

.toggle{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  user-select: none;
}
.toggle input{transform: scale(1.05);}

.help{
  display: grid;
  gap: 6px;
  font-size: 13px;
  opacity: .9;
}

kbd{
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.03);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.stage{
  min-width: 0;
}

.stage-bar{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  align-items: center;
  font-size: 13px;
}

.stage-frame{
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  overflow: hidden;
}

#canvas{
  width: 100%;
  height: min(72vh, 820px);
  touch-action: none; /* belangrijk: voorkomt browser-gesture i.p.v. tekenen */
  display: block;
}

.stage-foot{
  margin-top: 10px;
  font-size: 13px;
  opacity: .85;
}

.right{margin-left:auto;}
.muted{opacity:.75;}
.row{display:flex; gap: 10px; align-items:center; justify-content: space-between;}

.feasibility{
  font-size: 13px;
  display: grid;
  gap: 6px;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
}
.badge.warn{
  background: rgba(196,30,58,0.08);
  border-color: rgba(196,30,58,0.25);
}
.badge.ok{
  background: rgba(22,91,51,0.10);
  border-color: rgba(22,91,51,0.25);
}

/* Materiaal: swatch + notitie */
.swatch-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.swatch{
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}

.note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(196, 30, 58, 0.06);
  border: 1px dashed rgba(196, 30, 58, 0.35);
  font-size: 13px;
  line-height: 1.35;
}
