:root {
  --bg: #0b1220;
  --card: #111a2e;
  --text: #e7eefc;
  --muted: #a7b5d6;
  --accent: #6aa6ff;
  --danger: #ff6a6a;
  --border: rgba(255,255,255,0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1000px 600px at 10% 0%, rgba(106,166,255,0.18), transparent 60%), var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 760px;
  margin: 48px auto;
  padding: 0 16px;
}

header h1 {
  margin: 0;
  font-size: 32px;
}

.muted { color: var(--muted); margin-top: 6px; }

.row {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 10px;
  outline: none;
}

button {
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: rgba(106,166,255,0.14);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
}

button:hover { background: rgba(106,166,255,0.22); }

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}

.item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.todo-text {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-text.done {
  color: var(--muted);
  text-decoration: line-through;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.delete {
  border-color: rgba(255,106,106,0.35);
  background: rgba(255,106,106,0.10);
  color: var(--text);
}

.delete:hover {
  background: rgba(255,106,106,0.18);
}
