:root {
  --bg: #0f1117;
  --card: #1a1d27;
  --border: #2c3040;
  --text: #e8eaf0;
  --muted: #8b90a0;
  --accent: #4f8cff;
  --accent-hover: #6ba0ff;
  --danger: #ff5f6d;
  --success: #3ecf8e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 { font-size: 1.8rem; margin-bottom: 24px; }
h2 { font-size: 1.2rem; margin-bottom: 12px; color: var(--muted); }

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 20px;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(79, 140, 255, 0.08);
}

.hint { color: var(--muted); font-size: 0.9rem; }
.empty { padding: 12px 0; }

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}

.button:hover { background: var(--accent-hover); }

.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.upload-row .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.progress {
  width: 140px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress > div {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.15s;
}

.progress.done > div { background: var(--success); }
.progress.error > div { background: var(--danger); width: 100%; }

.status { font-size: 0.8rem; color: var(--muted); width: 70px; text-align: right; }
.status.error { color: var(--danger); }
.status.done { color: var(--success); }

.file-list { list-style: none; }

.file-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.file-list .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list .name a { color: var(--text); text-decoration: none; }
.file-list .name a:hover { color: var(--accent); text-decoration: underline; }

.file-list .meta { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

.icon-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.icon-btn:hover { color: var(--danger); background: rgba(255, 95, 109, 0.1); }
