:root {
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --success: #16a34a;
  --error: #dc2626;
  --border: #cbd5e1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 24px 16px;
}

.container {
  width: 100%;
  max-width: 560px;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 4px;
}

.subtitle {
  margin: 0 0 20px;
  color: var(--muted);
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px 20px;
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.dropzone.is-dragover {
  border-color: var(--primary);
  background: #eff6ff;
}

.dropzone__icon {
  font-size: 2rem;
}

.dropzone small {
  color: var(--muted);
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.file-item__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.file-item__name {
  font-weight: 600;
  word-break: break-all;
}

.file-item__size {
  color: var(--muted);
  white-space: nowrap;
}

.progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 6px;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 0.2s ease;
}

.file-item__status {
  font-size: 0.85rem;
  color: var(--muted);
}

.file-item.is-success .progress__bar {
  background: var(--success);
}

.file-item.is-success .file-item__status {
  color: var(--success);
}

.file-item.is-error .progress__bar {
  background: var(--error);
}

.file-item.is-error .file-item__status {
  color: var(--error);
}

.retry {
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.retry:hover {
  background: var(--primary);
  color: #fff;
}

.cancel {
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid var(--error);
  background: transparent;
  color: var(--error);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.cancel:hover {
  background: var(--error);
  color: #fff;
}
