/* Enterprise-like FilePond UI (no impact on upload/delete logic) */

/* Make list behave like a responsive grid */
.filepond--root.fp-enterprise .filepond--list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  margin: 0;
}

/* Override FilePond default absolute sizing so items can be grid cells */
.filepond--root.fp-enterprise .filepond--item {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 !important;
}

/* Make panel fill the cell */
.filepond--root.fp-enterprise .filepond--item-panel {
  border-radius: 12px;
}

/* Hide the default file info to look more like a thumbnail grid */
.filepond--root.fp-enterprise .filepond--file-wrapper,
.filepond--root.fp-enterprise .filepond--file {
  height: 100%;
}

.filepond--root.fp-enterprise .filepond--file-info,
.filepond--root.fp-enterprise .filepond--file-status {
  display: none !important;
}

/* Thumbnail layer */
.filepond--root.fp-enterprise .fp-thumb {
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  background: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1);
  transition: transform 160ms ease;
  box-shadow: 0 4px 14px rgba(10, 22, 70, 0.08);
}

.filepond--root.fp-enterprise .filepond--item:hover .fp-thumb {
  transform: scale(1.06);
}

/* When file isn't an image */
.filepond--root.fp-enterprise .fp-thumb.fp-thumb--file {
  background-size: 52px 52px;
}

/* Badges */
.filepond--root.fp-enterprise .fp-badges {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.filepond--root.fp-enterprise .fp-badge {
  font-size: 10px;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(4px);
  max-width: 68px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Remove button: top-right, circular */
.filepond--root.fp-enterprise .filepond--action-remove-item {
  top: 6px !important;
  right: 6px !important;
  left: auto !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  opacity: 0.95;
}

/* Responsive: slightly bigger thumbnails on larger screens */
@media (min-width: 1200px) {
  .filepond--root.fp-enterprise .filepond--item {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 576px) {
  .filepond--root.fp-enterprise .filepond--item {
    width: 88px;
    height: 88px;
  }
}
