/* ── Gemini / Upload File Items — Industrial Theme ───────────── */

.gemini-helper {
  margin-bottom: 12px;
}

/* ── File Item Row ────────────────────────────────────────────── */
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-primary, #f0f2f7);
  border: 1px solid var(--border, #dde2ee);
  border-radius: var(--radius-sm, 6px);
  margin-bottom: 6px;
  transition: background 200ms ease-out, border-color 200ms ease-out;
}

.file-item:hover {
  background: var(--bg-hover, #f7f8fc);
  border-color: var(--border-strong, #c4cad8);
}

/* Gemini-selected variant (AI will analyse this image) */
.file-item.gemini-selected {
  background: var(--cyan-subtle, #e0f7fb);
  border: 2px solid var(--cyan, #0891b2);
}

body.dark-mode .file-item.gemini-selected {
  background: var(--cyan-subtle, #0a2a32);
  border-color: var(--cyan, #22d3ee);
}

/* ── File Icon ────────────────────────────────────────────────── */
.file-item-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

/* ── File Info ────────────────────────────────────────────────── */
.file-item-info {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary, #1a2035);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.file-item-size {
  font-size: 11px;
  color: var(--text-muted, #8896a8);
  margin-top: 2px;
  font-family: var(--font-mono, monospace);
}

/* ── Progress Bar ─────────────────────────────────────────────── */
.progress-bar {
  height: 4px;
  background: var(--border, #dde2ee);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success-fg, #16a34a), #4ade80);
  width: 0%;
  transition: width 0.3s ease;
}

/* ── AI Badge ─────────────────────────────────────────────────── */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--cyan-subtle, #e0f7fb);
  border: 1.5px solid var(--cyan, #0891b2);
  border-radius: var(--radius-sm, 6px);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan, #0891b2);
  flex-shrink: 0;
  white-space: nowrap;
}

body.dark-mode .ai-badge {
  background: var(--cyan-subtle, #0a2a32);
  border-color: var(--cyan, #22d3ee);
  color: var(--cyan, #22d3ee);
}

/* ── Remove Button ────────────────────────────────────────────── */
.file-item-remove {
  flex-shrink: 0;
  padding: 6px 12px;
  background: var(--danger-bg, #fee2e2);
  color: var(--danger-fg, #dc2626);
  border: 1px solid var(--danger-fg, #dc2626);
  border-radius: var(--radius-xs, 4px);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans, sans-serif);
  transition: background 150ms ease-out, color 150ms ease-out;
}

.file-item-remove:hover {
  background: var(--danger-fg, #dc2626);
  color: #fff;
}

.file-item-remove:active {
  transform: scale(0.97);
}

/* ── File List Toggle ─────────────────────────────────────────── */
.file-list-toggle {
  display: block;
  width: 100%;
  padding: 8px;
  background: var(--bg-primary, #f0f2f7);
  border: 1px solid var(--border, #dde2ee);
  border-radius: var(--radius-sm, 6px);
  color: var(--text-secondary, #4a5570);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-top: 6px;
  transition: background 150ms ease-out;
}

.file-list-toggle:hover {
  background: var(--bg-hover, #f7f8fc);
  color: var(--text-primary, #1a2035);
}
