body {
  font-family: Arial, sans-serif;
  background: #f7f9fb;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input[type='text'] {
  flex: 1;
  padding: 10px;
  font-size: 16px;
}

select {
  padding: 10px;
}

button {
  padding: 10px 15px;
  background-color: #3498db;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

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

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

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

li button {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

li button.edit-btn {
  background-color: #f39c12; /* strong orange */
}

li button.delete-btn {
  background-color: #c0392b; /* strong red */
}

li button:hover {
  opacity: 0.85;
}

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

.stats {
  margin-top: 15px;
  font-weight: bold;
  text-align: right;
  color: #2c3e50;
}

.priority {
  margin-left: 5px;
  font-weight: bold;
}

.priority.low {
  color: #2ecc71; /* green */
}

.priority.medium {
  color: #f1c40f; /* yellow */
}

.priority.high {
  color: #e74c3c; /* red */
}

@media screen and (max-width: 600px) {
  form {
    flex-direction: column;
    align-items: stretch;
  }
}
