/* General */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f7;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Encabezado */
h1 {
  text-align: center;
  color: #007aff;
  font-size: 36px;
  margin-bottom: 20px;
}

/* Resumen de tareas */
.task-summary {
  text-align: center;
  background-color: #e9effd;
  padding: 15px 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.task-summary h2 {
  margin: 0;
  font-size: 22px;
  color: #005ecf;
}

.task-summary p {
  margin: 8px 0 0;
  font-size: 18px;
}

/* Controles de listas */
.list-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

#listInput {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 16px;
}

#addListBtn {
  background-color: #007aff;
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#addListBtn:hover {
  background-color: #005ecf;
}

/* Estilo de listas */
#lists {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.list-item {
  background-color: #e0e7ff;
  padding: 10px 15px;
  border-radius: 15px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #005ecf;
}

.list-item:hover {
  background-color: #c6d5ff;
}

.list-item.active {
  background-color: #005ecf;
  color: white;
}

/* Entrada de tareas */
.task-input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

#taskInput,
#taskPriority,
#taskDueDate {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 16px;
  flex: 1;
}

#taskInput {
  flex: 2;
}

#addTaskBtn {
  background-color: #007aff;
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#addTaskBtn:hover {
  background-color: #005ecf;
}

/* Campo de búsqueda */
.task-search-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

#taskSearchInput {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Lista de tareas */
#taskList {
  list-style: none;
  padding: 0;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 15px;
  background-color: #f9f9f9;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

li.completed {
  text-decoration: line-through;
  color: #aaa;
}

li:hover {
  background-color: #f1f1f1;
}

li span {
  font-weight: 500;
}

li button {
  background-color: #007aff;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

li button:hover {
  background-color: #005ecf;
}

li button.delete-btn {
  background-color: #ff3b30;
}

li button.delete-btn:hover {
  background-color: #d32f2f;
}

/* Botón para completar todas las tareas */
#completeAllBtn {
  background-color: #007aff;
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  border: none;
  font-size: 16px;
  display: block;
  margin: 20px auto;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#completeAllBtn:hover {
  background-color: #005ecf;
}