body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

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

h2 {
  text-align: center;
  margin-bottom: 15px;
}

.input-group {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#add {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
}

#add:hover {
  background: #218838;
}

ul {
  margin-top: 15px;
  padding: 0;
  list-style: none;
}

li {
  background: #f9f9f9;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

li span {
  flex: 1;
}

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

li button {
  border: none;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
}

li button:first-of-type {
  background: #007bff;
  color: white;
}

li button:last-of-type {
  background: #dc3545;
  color: white;
}

button[onclick^="update"] {
  background: orange;
  color: white;
}
