/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corpo geral */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f8f8f8, #e0e0e0);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

/* Container principal */
.container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

/* Título */
.container h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
  font-size: 28px;
}

/* Formulário */
form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

input[type="text"] {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border 0.2s;
}

input[type="text"]:focus {
  border-color: #888;
  outline: none;
}

button[type="submit"] {
  padding: 10px 20px;
  background-color: #2b7cff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background-color: #1a5edb;
}

/* Filtros */
#filters {
  text-align: center;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 8px 14px;
  margin: 0 5px;
  border: 1px solid #ccc;
  background-color: #eee;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter-btn:hover {
  background-color: #ddd;
}

.filter-btn.active {
  background-color: #2b7cff;
  color: white;
  border-color: #2b7cff;
}

/* Lista de tarefas */
#task-list {
  list-style: none;
}

#task-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafafa;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.2s, background-color 0.3s;
  cursor: pointer;
}

#task-list li:hover {
  background-color: #f0f0f0;
  transform: scale(1.01);
}

/* Tarefa concluída */
#task-list li.completed {
  text-decoration: line-through;
  color: #aaa;
  background-color: #e8f0ff;
}

/* Botão de remover */
.remove-btn {
  padding: 6px 12px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.remove-btn:hover {
  background-color: #e63939;
}

/* Animações de entrada e saída */
.task-enter {
  opacity: 0;
  transform: translateY(-10px);
}

.task-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
}

.task-exit-active {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s, transform 0.4s;
}
