* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #f3e5d0, #d38e70);
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

.app {
  background-color: #fffaf5;
  width: 90%;
  max-width: 500px;
  padding: 35px 25px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(75, 46, 30, 0.2);
  text-align: center;
}

.app h1 {
  color: #4b2e1e;
  font-size: 36px;
  margin-bottom: 8px;
}

.subtitle {
  color: #b86b4b;
  margin-bottom: 25px;
}

.task-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.task-form input {
  flex: 1;
  padding: 12px;
  border: 2px solid #d38e70;
  border-radius: 10px;
  font-size: 16px;
}

.task-form input:focus {
  outline: none;
  border-color: #b86b4b;
}

.task-form button {
  background-color: #b86b4b;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}

.task-form button:hover {
  background-color: #4b2e1e;
}

#task-message {
  font-weight: bold;
  min-height: 20px;
}

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

.task-list li {
  background-color: #f3e5d0;
  color: #4b2e1e;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  text-align: left;
}

.task-list li {
  background-color: #f3e5d0;
  color: #4b2e1e;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.task-list li span {
  flex: 1;
}

.task-list li button {
  background-color: #b86b4b;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.task-list li button:hover {
  background-color: #4b2e1e;
}
.completed {
  text-decoration: line-through;
  opacity: 0.6;
}

#task-counter {
  color: #4b2e1e;
  font-weight: bold;
  margin-top: 10px;
}
.task-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.task-filters button {
  background-color: #f3e5d0;
  color: #4b2e1e;
  border: 2px solid #b86b4b;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
}

.task-filters button:hover,
.task-filters button.active {
  background-color: #b86b4b;
  color: white;
}