:root {
  --bg: #0f172a;
  --card: #020617;
  --text: #e5e7eb;
  --border: #1e293b;
  --primary: #38bdf8;
  --danger: #ef4444;
}

.light {
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #020617;
  --border: #cbd5e1;
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .3s;
}

.card {
  background: var(--card);
  padding: 1.8rem;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.row {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}

input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

button {
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #020617;
  font-weight: bold;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

li {
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  transition: .2s;
}

li.done span {
  text-decoration: line-through;
  opacity: .5;
}

li span {
  flex: 1;
}

li button {
  background: var(--danger);
  color: white;
}

li.dragging {
  opacity: .4;
}

.danger {
  width: 100%;
  background: var(--danger);
}

/* TOAST */
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: .3s;
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}
