/* ----------  PDF Merger specifics  ---------- */

.dropzone {
  display: block;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease;
  outline: none;
  margin-bottom: 22px;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); background: var(--bg-elev-2); }
.dropzone.is-dragover { border-color: var(--accent); background: rgba(124, 92, 255, 0.08); transform: scale(1.005); }
.dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dropzone-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.15));
  color: #cdd3ff; border: 1px solid rgba(124, 92, 255, 0.3);
}
.dropzone-icon svg { width: 26px; height: 26px; }
.dropzone-text { color: var(--text); font-size: 15px; }
.dropzone-hint { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.images-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; gap: 10px; flex-wrap: wrap;
}
.images-header h2 { margin: 0; font-size: 18px; }
.muted { color: var(--text-dim); font-weight: 500; }
.hint  { color: var(--text-dim); font-size: 12px; }

.pm-list { display: grid; gap: 10px; }

.pm-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: grab;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}
.pm-card:hover { border-color: var(--border-strong); }
.pm-card.dragging { opacity: 0.4; cursor: grabbing; }
.pm-card.drag-over { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.35); }

.pm-index {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-grad); color: white;
  font-weight: 700; font-size: 13px;
  border-radius: 999px;
}

.pm-info { min-width: 0; }
.pm-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-meta { color: var(--text-muted); font-size: 12px; margin-top: 2px; font-variant-numeric: tabular-nums; }

.pm-remove {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pm-remove:hover { background: rgba(239, 68, 68, 0.12); color: #fda4a4; border-color: rgba(239, 68, 68, 0.5); }
.pm-remove svg { width: 14px; height: 14px; }
