/* 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; }

/* Preview */
.img-preview-wrap { display: none; margin-top: 14px; text-align: center; }
.img-preview-wrap.show { display: block; }
.img-preview {
  max-width: 100%;
  max-height: 320px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fafafa;
}
.img-meta { margin-top: 8px; font-size: 13px; color: #555; }

/* Options */
.opt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;   /* a grown label must be able to push the field to the next line */
  margin-top: 14px;
}
/* min-width, not width: a label longer than this floor (fr/pl/ru have several)
   must be allowed to grow instead of spilling over the field next to it. */
.opt-row label { min-width: 60px; flex-shrink: 0; font-size: 13px; color: #555; }
.opt-row input[type=range] { flex: 1; accent-color: #0078d4; cursor: pointer; }
.opt-row select {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  outline: none;
}
.opt-row select:focus { border-color: #0078d4; }
.range-val { width: 40px; flex-shrink: 0; font-size: 13px; color: #333; text-align: right; }

/* Before/after comparison */
.compare {
  display: none;
  margin-top: 16px;
  border: 1px solid #c5ddf9;
  border-radius: 8px;
  overflow: hidden;
}
.compare.show { display: flex; }
.cmp-item {
  flex: 1;
  padding: 14px 10px;
  text-align: center;
  background: #f8fbff;
}
.cmp-item + .cmp-item { border-left: 1px solid #e0eaf5; }
.cmp-item.saved { background: #eaf7ea; }
.cmp-label { font-size: 12px; color: #888; }
.cmp-val { margin-top: 4px; font-size: 18px; font-weight: 700; color: #0078d4; font-family: 'Consolas', monospace; }
.cmp-item.saved .cmp-val { color: #107c10; }

/* 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; }
