/* File drop zone */
.drop-zone {
  border: 2px dashed #cfe0f0;
  border-radius: 10px;
  background: #f8fbff;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.drop-zone:hover, .drop-zone:focus, .drop-zone.dragging {
  border-color: #0078d4;
  background: #eef6ff;
}
.drop-icon { font-size: 30px; line-height: 1; }
.drop-text { margin-top: 10px; font-size: 15px; color: #333; font-weight: 600; }
.drop-link { color: #0078d4; text-decoration: underline; }
.drop-note { margin-top: 6px; font-size: 12px; color: #999; }

/* Crop stage */
.crop-wrap { display: none; margin-top: 14px; text-align: center; }
.crop-wrap.show { display: block; }
.crop-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  touch-action: none;
  user-select: none;
}
.crop-img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  border-radius: 8px;
}
.crop-box {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  cursor: move;
  box-sizing: border-box;
}
.crop-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.crop-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  bottom: -8px;
  background: #0078d4;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: nwse-resize;
}
.img-meta { margin-top: 8px; font-size: 13px; color: #555; }
.img-meta strong { color: #0078d4; }

/* Action */
.btn-merge {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-merge:hover:not(:disabled) { background: #005fa3; }
.btn-merge:disabled { opacity: 0.6; cursor: default; }

.pdf-status {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  word-break: break-word;
}
.pdf-status.show { display: block; }
.pdf-status.error { background: #fdecea; border: 1px solid #f5c6c0; color: #c0392b; }
.pdf-status.ok { background: #eaf7ea; border: 1px solid #b6e0b6; color: #107c10; }
