* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background-color: white;
  width: 100%;
  max-width: 500px;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

#contador {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

#contador span {
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

#total {
  background-color: #e0e0e0;
}

#concluidas {
  background-color: #c8f7c5;
  color: #2e7d32;
}

#pendentes {
  background-color: #ffe0b2;
  color: #ef6c00;
}

.input-area {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #666;
}

#btnAdicionar {
  padding: 12px 16px;
  border: none;
  background-color: #333;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

#btnAdicionar:hover {
  background-color: #555;
}

#lista {
  list-style: none;
}

#lista li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafafa;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #eee;
}

#lista li span {
  cursor: pointer;
  flex: 1;
}

#lista li button {
  margin-left: 10px;
  padding: 8px 12px;
  border: none;
  background-color: #e53935;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

#lista li button:hover {
  background-color: #c62828;
}

.concluida {
  text-decoration: line-through;
  color: gray;
}

#limpar {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  background-color: #757575;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

#limpar:hover {
  background-color: #616161;
}

#vazio {
  text-align: center;
  color: #888;
  margin-bottom: 15px;
  font-size: 14px;
}