/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* VARIÁVEIS */
:root {
  --bg: #0f172a;
  --card: #1e293b;
  --accent: #6366f1;
  --text: #e5e7eb;
  --muted: #94a3b8;
}

/* BODY */
body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTAINER */
.container {
  background-color: var(--card);
  padding: 40px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
}

/* TÍTULO */
.container h1 {
  text-align: center;
  margin-bottom: 30px;
}

/* FORM */
form {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  outline: none;
}

button {
  padding: 12px 20px;
  background-color: var(--accent);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  opacity: 0.9;
}

/* LISTA */
ul {
  list-style: none;
  margin-top: 30px;
}

li {
  background-color: #020617;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BOTÃO REMOVER */
li button {
  background-color: transparent;
  border: none;
  color: #f87171;
  cursor: pointer;
  font-size: 1.2rem;
}

li.concluida span {
  text-decoration: line-through;
  color: var(--muted);
}

li span {
  cursor: pointer;
}

/* FILTROS */
.filtros {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.filtros button {
  flex: 1;
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--text);
  padding: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.filtros button.ativo {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* CONTADOR */
.contador {
  margin-top: 15px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ANIMAÇÕES */
li {
  animation: fadeIn 0.3s ease;
}

li.concluida {
  opacity: 0.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
