:root {
  --bg: #0f1220;
  --bg-soft: #171a2e;
  --card: #1c2036;
  --border: #2a2f4a;
  --text: #e8eaf6;
  --muted: #9aa0c0;
  --accent: #6c8cff;
  --accent-2: #a06cff;
  --danger: #ff6c8c;
  --ok: #56d67e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, #23294d 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #2c1f4d 0%, transparent 55%), var(--bg);
  display: flex;
  justify-content: center;
  padding: 48px 20px;
}

.app {
  width: 100%;
  max-width: 620px;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

h1 {
  font-size: 64px;
  margin: 0;
  font-weight: 800;
  letter-spacing: -2px;
}

.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 0 transparent;
}

.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 10px 1px var(--ok);
}

.dot.err {
  background: var(--danger);
  box-shadow: 0 0 10px 1px var(--danger);
}

.card {
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
}

.task-form {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.task-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}

.task-form input:focus {
  border-color: var(--accent);
}

.task-form button {
  border: none;
  border-radius: 12px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.task-form button:hover {
  transform: translateY(-1px);
}

.task-form button:active {
  transform: translateY(0);
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  animation: pop 0.18s ease;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.task .title {
  flex: 1;
  font-size: 15px;
  word-break: break-word;
}

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

.task .delete {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.task .delete:hover {
  color: var(--danger);
  background: rgba(255, 108, 140, 0.1);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 18px 0;
  margin: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.footer code {
  color: var(--accent);
}
