* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f4f7fa;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  width: 400px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.input-section {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.input-section input {
  flex: 1;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 6px;
  margin-right: 10px;
}

.input-section button {
  padding: 10px 15px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.input-section button:hover {
  background: #0056b3;
}

ul {
  list-style: none;
}

ul li {
  background: #f9f9f9;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

ul li.completed {
  text-decoration: line-through;
  color: gray;
}

ul li button {
  border: none;
  background: crimson;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

ul li button:hover {
  background: darkred;
}




.btn-group {
  display: flex;
  gap: 6px;
}

.edit-btn {
  background: #ffc107;
  color: black;
}

.edit-btn:hover {
  background: #e0a800;
}

.delete-btn {
  background: crimson;
  color: white;
}
