/* action icons */
a:has(svg.bi) {
  text-decoration: none;
}

/* hover only visibility */
.hover-container .hover-only {
  opacity: 0;
  transition: opacity 0.1s ease;
}

.hover-container:hover .hover-only, .hover-container:focus-within .hover-only {
  opacity: 1;
}

.file-dropzone {
  border: 2px dashed #bbb;
  border-radius: 8px;
  padding: 40px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  width: 100%;
}

.file-dropzone.dragover {
  background-color: #f8f9fa;
  border-color: #0d6efd;
}

.sortable-item {
  cursor: grab;
}

.sortable-item.dragging {
  opacity: 0.5;
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  padding: 40px;
  text-align: center;
  background: #f5f5f5;
  font-size: 24px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* hotwire-inline-edit styles */
[data-controller="hotwire-inline-edit"]:empty::before {
  content: attr(data-hotwire-inline-edit-blank-placeholder-value);
  color: #999;
  cursor: pointer;
}

[data-controller="hotwire-inline-edit"] {
  .fit-1 { width: 1em; }
  .fit-2 { width: 2em; }
  .fit-3 { width: 3em; }
  .fit-4 { width: 4em; }
  .fit-5 { width: 5em; }
  .fit-6 { width: 6em; }
  .fit-7 { width: 7em; }
  .fit-8 { width: 8em; }
  .fit-9 { width: 9em; }
  .fit-10 { width: 10em; }
  .fit-15 { width: 15em; }
  .fit-20 { width: 20em; }
  .fit-25 { width: 25em; }
  .fit-30 { width: 30em; }

  .fit-full { width: 100%; }
  .fit-auto { width: auto; }
}