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

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  min-height: 100vh;
  color: #1e293b;
  padding: 24px;
}

.app {
  max-width: 700px;
  margin: 0 auto;
}

.topo {
  text-align: center;
  margin-bottom: 24px;
}

.topo h1 {
  font-size: 2.2rem;
  color: #1d4ed8;
  margin-bottom: 8px;
}

.topo p {
  color: #475569;
  font-size: 1rem;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.input-area {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.input-area input {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  font-size: 1rem;
}

.input-area input:focus {
  border-color: #3b82f6;
}

.input-area button {
  border: none;
  background: #2563eb;
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.input-area button:hover {
  background: #1d4ed8;
}

.filtros {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filtro {
  border: none;
  background: #e2e8f0;
  color: #334155;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.filtro:hover {
  background: #cbd5e1;
}

.filtro.ativo {
  background: #2563eb;
  color: white;
}

#lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-tarefa {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px 16px;
  border-radius: 14px;
}

.conteudo-tarefa {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.texto-tarefa {
  font-size: 1rem;
  word-break: break-word;
}

.concluida .texto-tarefa {
  text-decoration: line-through;
  color: #94a3b8;
}

.acoes {
  display: flex;
  gap: 8px;
}

.btn-acao {
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.btn-check {
  background: #dcfce7;
  color: #166534;
}

.btn-check:hover {
  background: #bbf7d0;
}

.btn-delete {
  background: #fee2e2;
  color: #991b1b;
}

.btn-delete:hover {
  background: #fecaca;
}

.mensagem-vazia {
  text-align: center;
  color: #64748b;
  margin-top: 18px;
  display: none;
}

@media (max-width: 600px) {
  .card {
    padding: 18px;
  }

  .item-tarefa {
    flex-direction: column;
    align-items: stretch;
  }

  .acoes {
    width: 100%;
    justify-content: flex-end;
  }
}
