/* /src/Resources/public/dropzone-upload.css
 *
 * Minimal "Contao Backend Upload"-ähnlicher Look.
 * (Ohne externe Abhängigkeiten)
 */

.opdz-zone {
  position: relative;
  border: 2px dashed rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 16px;
  min-height: 120px;
  background: rgba(0, 0, 0, 0.02);
  cursor: pointer;
}

.opdz-zone.is-dragover {
  border-color: rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.04);
}

.opdz-message {
  text-align: center;
  user-select: none;
}

.opdz-message__title {
  font-weight: 600;
  margin-bottom: 4px;
}

.opdz-message__subtitle {
  opacity: 0.75;
  margin-bottom: 8px;
}

.opdz-message__meta {
  font-size: 0.9em;
  opacity: 0.7;
}

.opdz-file-input {
  /* Unsichtbar + nicht klickbar (File-Dialog wird per JS geöffnet) */
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.opdz-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.opdz-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  background: rgba(255,255,255,0.8);
  margin-top: 8px;
}

.opdz-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0.8;
}

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

.opdz-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.opdz-fn {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opdz-sub {
  font-size: 0.9em;
  opacity: 0.75;
}

.opdz-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.1);
  overflow: hidden;
  margin-top: 6px;
}

.opdz-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(0,0,0,0.45);
}

.opdz-actions {
  flex: 0 0 auto;
}

.opdz-btn {
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 12px;
}

.opdz-btn:hover {
  background: rgba(255,255,255,1);
}

.opdz-item.is-error .opdz-sub {
  color: #b00020;
  opacity: 1;
}

.opdz-item.is-done .opdz-sub {
  opacity: 0.85;
}
