* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f6fb;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 360px;
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

h1 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
  text-align: center;
}

.input-area {
  display: flex;
  gap: 8px;
}

#taskInput {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
}

#addTask {
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

#addTask:hover {
  background: #1e4ed8;
}

#taskList {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f3f7;
  padding: 10px 12px;
  border-radius: 8px;
}

li button {
  background: #ef4444;
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

li button:hover {
  background: #dc2626;
}

.completed {
  text-decoration: line-through;
  opacity: 0.6;
}
