/*
 * Cuter drop zone styling layered on top of the FilePond CDN stylesheet.
 * Loaded after filepond.min.css in the layout so these win the cascade.
 */

.filepond--root {
  margin-bottom: 0;
  font-family: inherit;
  cursor: pointer;
}

/* The dashed, pastel drop zone itself. */
.filepond--panel-root {
  background: linear-gradient(180deg, #f5f3ff 0%, #eef2ff 100%);
  border: 2px dashed #c7d2fe;
  border-radius: 1rem;
  transition: border-color 150ms ease, background 150ms ease;
}

.filepond--root:hover .filepond--panel-root {
  border-color: #a5b4fc;
  background: linear-gradient(180deg, #ede9fe 0%, #e0e7ff 100%);
}

/* Lift the whole zone while a file is hovering over it. */
.filepond--root[data-hopper-state="drag-over"] {
  transform: translateY(-2px);
  transition: transform 150ms ease;
}

.filepond--root[data-hopper-state="drag-over"] .filepond--panel-root {
  border-color: #818cf8;
  border-style: solid;
  background: linear-gradient(180deg, #e0e7ff 0%, #ddd6fe 100%);
}

/* Selectors here mirror FilePond's own specificity (it ships
   `.filepond--root .filepond--drop-label` and a doubled-class label rule),
   otherwise these lose the cascade. The panel is sized off this min-height. */
.filepond--root .filepond--drop-label {
  min-height: 9em;
  color: #4c1d95;
}

.filepond--drop-label.filepond--drop-label label {
  padding: 1em 1.25em;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* The little bouncing camera above the label text. */
.filepond--drop-label .drop-icon {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: filepond-bob 2.4s ease-in-out infinite;
}

.filepond--drop-label .drop-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #7c6bb0;
}

@keyframes filepond-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .filepond--drop-label .drop-icon { animation: none; }
  .filepond--root[data-hopper-state="drag-over"] { transform: none; }
}

.filepond--label-action {
  color: #4f46e5;
  font-weight: 600;
  text-decoration-color: #c7d2fe;
  text-underline-offset: 3px;
}

.filepond--label-action:hover {
  color: #4338ca;
}

/* Rounded preview card once a file is dropped. */
.filepond--item-panel {
  background-color: #4f46e5;
  border-radius: 0.75rem;
}

.filepond--image-preview-overlay-success { color: #34d399; }
.filepond--image-preview-overlay-failure { color: #fb7185; }

.filepond--drip-blob {
  background-color: #a5b4fc;
}
