/*
 * upload_zone.css
 * Shared styling for upload zones and file preview lists.
 *
 * Used by multiple pages (e.g., data_files, builder_structures).
 * Depends on design tokens from app_ui.css.
 */

/* Hidden file input (standard pattern for custom file upload UI) */
.upload-zone__hidden-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Visual upload area */
.upload-zone {
  border: 2px dashed var(--moduleSelectionColor);
  border-radius: var(--border-radius);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f0f8ff;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-zone:hover {
  border-color: var(--moduleSelectionColor);
  background: #e3f2fd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-width: 2px;
}

.upload-zone.drag-over {
  border-color: var(--moduleSelectionColor);
  background: #bbdefb;
  border-style: solid;
}

.upload-zone--disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
  background: var(--bg-light);
}

.upload-zone__icon {
  font-size: 32px;
  display: inline-block;
  margin-right: var(--space-sm);
  opacity: 0.8;
  vertical-align: middle;
}

.upload-zone__content {
  display: inline-block;
}

.upload-zone__content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.upload-zone__content p strong {
  color: var(--moduleSelectionColor);
  font-size: 15px;
  font-weight: 600;
}

.upload-zone__content .hint {
  display: inline;
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 4px;
}

/* File preview list */
.file-preview-list {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: var(--bg-light);
  border-radius: var(--border-radius);
  display: none; /* Hidden until files selected */
}

.file-preview-list.has-files {
  display: block;
}

.file-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px;
  background: #e3f2fd;
  border-radius: 4px;
}

.file-preview-header-title {
  color: #1976d2;
  font-size: 13px;
}

/* REMOVED: .file-preview-clear - now uses .btn .btn-sm .btn-danger from app_ui.css */

.file-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm);
  background: white;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--moduleSelectionColor);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-xs);
  transition: all 0.2s;
}

.file-preview-item:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-preview-item:last-child {
  margin-bottom: 0;
}

.file-preview-name {
  font-weight: 500;
  color: var(--text-primary);
}

.file-preview-size {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: var(--space-sm);
}

/* REMOVED: .file-preview-remove - now uses .btn-icon .btn-icon--danger from app_ui.css */
