/* ── Layout ─────────────────────────────────────────────────────────────── */

body {
  background-color: #f4f6f9;
}

.card {
  border: none;
  border-radius: 12px;
}

.card-header {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  border-radius: 12px 12px 0 0 !important;
}

/* ── Step badge ─────────────────────────────────────────────────────────── */

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #dc3545;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Drop zone ──────────────────────────────────────────────────────────── */

.drop-zone {
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s;
  cursor: pointer;
}

.drop-zone.drag-over {
  border-color: #0d6efd;
  background-color: #f0f7ff;
}

/* ── Image grid ─────────────────────────────────────────────────────────── */

.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 10px;
}

.thumbnail-item {
  position: relative;
  width: 100px;
  height: 133px;
  border-radius: 8px;
  overflow: hidden;
  cursor: grab;
  background: #e9ecef;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: box-shadow 0.15s, transform 0.15s;
}

.thumbnail-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Remove button */
.thumbnail-item .remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.thumbnail-item:hover .remove-btn {
  opacity: 1;
}

.thumbnail-item .remove-btn:hover {
  background: rgba(220, 53, 69, 0.9);
}

/* Drag handle hint */
.thumbnail-item .drag-handle {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.thumbnail-item:hover .drag-handle {
  opacity: 1;
}

/* Sortable ghost */
.sortable-ghost {
  opacity: 0.35;
  background: #cfe2ff;
}

/* ── Audio info ──────────────────────────────────────────────────────────── */

.audio-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* ── Logo position buttons ───────────────────────────────────────────────── */

.logo-pos-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.logo-pos-btn:has(input:checked),
.logo-pos-btn.active {
  background: #e7f0ff;
  border-color: #0d6efd;
  color: #0d6efd;
  font-weight: 500;
}

.logo-pos-btn input[type="radio"] {
  display: none;
}
