/* File: assets/css/pdf_redact_tool.css */
/* Alles scoped zodat we NOOIT de rest van de website beïnvloeden */

.pdf-redact-tool .tool-wrap{

  margin: 0 auto;
  padding: 28px 18px 60px;
}

.pdf-redact-tool h1{
  font-size: 34px;
  line-height: 1.15;
  margin: 6px 0 6px;
  letter-spacing: -0.02em;
}

.pdf-redact-tool .tool-sub{
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 15px;
}

.pdf-redact-tool .step{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.pdf-redact-tool .step-head{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.pdf-redact-tool .step-num{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pdf-redact-tool .step-title{
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}

.pdf-redact-tool .step-desc{
  color: #6b7280;
  font-size: 13px;
}

.pdf-redact-tool .step-body{
  padding-top: 6px;
}

.pdf-redact-tool .row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pdf-redact-tool input[type="file"]{
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #f9fafb;
}

.pdf-redact-tool .btn{
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}

.pdf-redact-tool .btn:hover{
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.pdf-redact-tool .btn.primary{
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.pdf-redact-tool .btn.danger{
  background: #fee2e2;
  border-color: #fecaca;
  color: #7f1d1d;
}

.pdf-redact-tool .btn.ghost{
  background: #f9fafb;
}

.pdf-redact-tool .status{
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
}

.pdf-redact-tool .status.ok{ color: #065f46; }
.pdf-redact-tool .status.err{ color: #991b1b; }

.pdf-redact-tool .redact-layout{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}

@media (max-width: 980px){
  .pdf-redact-tool .redact-layout{
    grid-template-columns: 1fr;
  }
}

.pdf-redact-tool .nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pdf-redact-tool .nav-mid{
  color: #374151;
  font-weight: 600;
}

.pdf-redact-tool .preview-wrap{
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  min-height: 360px;
}

.pdf-redact-tool .preview-img{
  display: block;
  width: 100%;
  height: auto;
}

.pdf-redact-tool .preview-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.pdf-redact-tool .tips{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
  height: fit-content;
}

.pdf-redact-tool .tips h3{
  margin: 4px 0 10px;
  font-size: 15px;
}

.pdf-redact-tool .tips ul{
  margin: 0 0 12px 18px;
  color: #4b5563;
  font-size: 13px;
}

.pdf-redact-tool .actions{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.pdf-redact-tool .actions a.btn{
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

/* Placeholder overlay voor preview (zichtbaar tot IMG geladen is) */
.preview-wrap {
  position: relative;
}

.preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f8;
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 14px;
  z-index: 5; /* boven img/canvas */
  padding: 18px;
  text-align: center;
}

.preview-placeholder .ph-inner {
  max-width: 360px;
}

.preview-placeholder .ph-icon {
  font-size: 34px;
  margin-bottom: 10px;
}

.preview-placeholder .ph-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.preview-placeholder .ph-sub {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.35;
}

/* Als we 'm verbergen */
.preview-placeholder.is-hidden {
  display: none;
}