/* 🎨 Fondo general */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
  color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

/* 📦 Contenedor */
.container {
  background: #2b2b2b;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  width: 380px;
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* 📝 Título */
h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #4caf50;
}

/* 🔤 Input */
input[type="text"] {
  width: 70%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #3a3a3a;
  color: #fff;
  outline: none;
  transition: 0.3s;
}

input[type="text"]:focus {
  background: #444;
  box-shadow: 0 0 5px #4caf50;
}

/* 🔘 Botón */
button {
  padding: 10px 14px;
  border: none;
  background: #4caf50;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
}

button:hover {
  background: #45a049;
  transform: scale(1.02);
}

/* 📋 Lista */
ul {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

li {
  background: #3a3a3a;
  margin: 8px 0;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  gap: 10px;
}

li:hover {
  background: #464646;
}

/* ✅ Texto de la tarea */
.taskText {
  flex: 1;
  margin-left: 10px;
  transition: 0.3s;
  cursor: pointer;
}

/* ✨ Tachado al completar */
.completed {
  text-decoration: line-through;
  color: #999;
  opacity: 0.7;
  transform: scale(0.98);
}

/* ❌ Botón eliminar */
.deleteButton {
  color: #ff4d4d;
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
  padding: 0 6px;
  transition: 0.3s;
  user-select: none;
}

.deleteButton:hover {
  color: #ff1a1a;
  transform: scale(1.2);
}