/* Image to PDF — tool-specific styles */

.toolbar .toolbar-sep { width: 1px; height: 24px; background: #e2e8f0; flex-shrink: 0; }

.setting-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #64748b; white-space: nowrap;
}
.setting-label select {
  padding: 4px 8px; border: 1px solid #e2e8f0; border-radius: 6px;
  font-size: 12px; color: #1e293b; background: #fff; cursor: pointer;
  outline: none;
}
.setting-label select:focus { border-color: #2563eb; }

/* Drop zone */
#dropZone {
  flex: 1; min-height: 0; overflow: auto;
  position: relative;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
#dropZone.drag-over { background: #eff6ff; }

.drop-hint {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: #cbd5e1; pointer-events: none;
  padding: 40px;
}
#dropZone:not(.empty) .drop-hint { display: none; }
.drop-hint svg { stroke: #cbd5e1; }
.drop-hint p { font-size: 14px; color: #94a3b8; text-align: center; line-height: 1.6; }
.drop-hint p strong { color: #64748b; }
.drop-hint-sub { font-size: 12px !important; color: #cbd5e1 !important; }

/* Thumb grid */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 16px;
}
#dropZone.empty .thumb-grid { display: none; }

.thumb-card {
  border: 1px solid #e2e8f0; border-radius: 8px;
  overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
  cursor: grab; position: relative;
  transition: box-shadow 0.15s, transform 0.15s;
  user-select: none;
}
.thumb-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.thumb-card.dragging { opacity: 0.5; transform: scale(0.97); }
.thumb-card.drag-target { border-color: #2563eb; box-shadow: 0 0 0 2px #bfdbfe; }

.thumb-img-wrap {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  background: #f8fafc;
  display: flex; align-items: center; justify-content: center;
}
.thumb-img-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }

.thumb-info {
  padding: 6px 8px; display: flex; flex-direction: column; gap: 2px;
}
.thumb-name {
  font-size: 11px; font-weight: 500; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thumb-size { font-size: 10px; color: #94a3b8; }

.thumb-remove {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; padding: 0;
  border-radius: 50%; border: none;
  background: rgba(0,0,0,0.45); color: #fff;
  font-size: 10px; line-height: 1; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.thumb-card:hover .thumb-remove { display: flex; }
.thumb-remove:hover { background: #dc2626; opacity: 1; }

.thumb-num {
  position: absolute; top: 4px; left: 4px;
  background: rgba(0,0,0,0.45); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 4px;
  padding: 1px 5px; line-height: 1.5;
}
