/* ==============================================
   Schilderij Visualizer — stijlen
   ============================================== */

.pv-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.pv-widget-titel {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* ---------- Labels ---------- */
.pv-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #444;
}

/* ---------- Stappen ---------- */
.pv-step {
  margin-bottom: 1.5rem;
}

/* ---------- Select schilderij ---------- */
.pv-select-schilderij {
  width: 100%;
  max-width: 360px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
  cursor: pointer;
}

/* ---------- Dropzone ---------- */
.pv-dropzone {
  position: relative;
  border: 2px dashed #c8c8c8;
  border-radius: 10px;
  background: #fafafa;
  text-align: center;
  padding: 2.5rem 1rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.pv-dropzone:hover,
.pv-dropzone.pv-drag-over {
  border-color: #666;
  background: #f3f3f3;
}

.pv-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.pv-dropzone__inner svg {
  display: block;
  margin: 0 auto 0.75rem;
  color: #999;
}

.pv-dropzone__inner p {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: #555;
}

.pv-dropzone__inner small {
  font-size: 0.8rem;
  color: #999;
}

/* ---------- Canvas ---------- */
.pv-hint {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.pv-canvas-container {
  position: relative;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  cursor: crosshair;
}

#pv-canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- Bedieningspaneel ---------- */
.pv-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.pv-controls--buttons {
  gap: 0.5rem;
  margin-top: 1.25rem;
}

#pv-scale {
  flex: 1;
  min-width: 120px;
  max-width: 260px;
  accent-color: #333;
}

#pv-scale-val {
  font-size: 0.875rem;
  min-width: 3rem;
  color: #555;
}

/* ---------- Knoppen ---------- */
.pv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, opacity .15s;
}

.pv-btn--secondary {
  background: #fff;
  color: #333;
  border-color: #ccc;
}
.pv-btn--secondary:hover { background: #f5f5f5; }

.pv-btn--primary {
  background: #222;
  color: #fff;
  border-color: #222;
}
.pv-btn--primary:hover { background: #444; }

.pv-btn--koop {
  background: #1a7f4b;
  color: #fff;
  border-color: #1a7f4b;
}
.pv-btn--koop:hover { background: #16693e; }

/* ---------- Loading overlay ---------- */
.pv-loading {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #333;
  border-radius: 10px;
  pointer-events: none;
}
