* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

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

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

.subtitle {
  margin: 0 0 24px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.subtitle code {
  background: #1e293b;
  padding: 2px 6px;
  border-radius: 4px;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
}

.dot.ok {
  background: #22c55e;
}

.dot.error {
  background: #ef4444;
}

.new-task {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.new-task input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.new-task button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #6366f1;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.new-task button:hover {
  background: #4f46e5;
}

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

.task-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #1e293b;
  border-radius: 8px;
  border: 1px solid #334155;
}

.task-list li.done span {
  text-decoration: line-through;
  color: #64748b;
}

.task-list li input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
