/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f0f2f5;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  min-height: 100vh;
}

.container {
  background: #fff;
  width: 100%;
  max-width: 480px;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Formulário */
.taskCreateForm form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.taskCreateForm label {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
}

.taskCreateForm input[type="text"] {
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1.5px solid #ccc;
  transition: border-color 0.2s ease;
}

.taskCreateForm input[type="text"]:focus {
  border-color: #007bff;
  outline: none;
}

.taskCreateForm button {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 12px 0;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.taskCreateForm button:hover {
  background-color: #0056b3;
}

/* Lista de tarefas */
.tasks {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Cada task */
.task {
  background: #f9fafb;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease;
}

/* Texto da task */
.task p {
  margin: 0;
  font-size: 1rem;
  color: #333;
  word-break: break-word;
  flex: 1;
}

/* Botão deletar */
.task button {
  background-color: #dc3545;
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 15px;
  transition: background-color 0.3s ease;
}

.task button:hover {
  background-color: #a71d2a;
}

/* Animação explosão + drop */
@keyframes explodeDrop {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
    filter: drop-shadow(0 0 0px #ff0000);
  }
  50% {
    transform: translateY(30px) scale(1.3) rotate(15deg);
    opacity: 0.7;
    filter: drop-shadow(0 0 10px #ff4500);
  }
  100% {
    transform: translateY(150px) scale(0.5) rotate(45deg);
    opacity: 0;
    filter: drop-shadow(0 0 20px #ff0000);
  }
}

/* Classe para aplicar animação */
.explode-drop {
  animation: explodeDrop 0.7s forwards ease-out;
}
