/* ═══════════════════════════════════════════════
   css/vorgaenge-dateien.css
   Tab "Dateien" Styling
═══════════════════════════════════════════════ */

/* ─── Upload-Dropzone ─── */
.vd-uploadzone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-bottom: 14px;
  background: var(--bg1);
  transition: all 0.15s;
  cursor: pointer;
  user-select: none;
}
.vd-uploadzone:hover {
  border-color: var(--accent);
  background: var(--accent-pale2);
}
.vd-uploadzone.drag {
  border-color: var(--accent);
  background: var(--accent-pale);
  transform: scale(1.01);
}
.vd-uploadzone-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.vd-uploadzone-hint {
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
}

/* ─── Upload-Progress ─── */
.vd-progress-row {
  background: var(--bg1);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid var(--border);
}
.vd-progress-bar {
  margin-top: 6px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.vd-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.2s;
}

/* ─── Filter-Pills ─── */
.vd-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.vd-pill {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vd-pill:hover {
  border-color: var(--accent);
}
.vd-pill.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.vd-pill-count {
  background: rgba(0,0,0,0.08);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}
.vd-pill.active .vd-pill-count {
  background: rgba(255,255,255,0.3);
}

/* ─── Datei-Grid ─── */
.vd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.vd-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
}
.vd-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.vd-card-preview {
  position: relative;
  height: 130px;
  background: var(--bg1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vd-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vd-card-icon {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.vd-card-ext {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.vd-card-cat-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.vd-card-body {
  padding: 8px 10px;
  flex: 1;
}
.vd-card-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text1);
}
.vd-card-meta {
  font-size: 10px;
  color: var(--text3);
  margin-top: 4px;
  line-height: 1.4;
}
.vd-card-note {
  font-size: 11px;
  color: var(--text2);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vd-card-actions {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  border-top: 1px solid var(--border);
  background: var(--bg1);
}
.vd-card-actions button {
  flex: 1;
  font-size: 12px !important;
  padding: 6px 10px !important;
  white-space: nowrap;
}

/* ─── Detail-Modal Preview-Box ─── */
.vd-preview-box {
  background: #1a1a1a;
  border-radius: 6px;
  margin-bottom: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
