/* Général */
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #f0f4fd, #cce5ff);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #333;
}

/* Conteneur principal */
.app-container {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Titre */
.app-container h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #007bff;
  font-weight: bold;
}

/* Formulaire */
#todo-form {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

#todo-input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px 0 0 8px;
  outline: none;
  transition: border-color 0.3s ease;
}

#todo-input:focus {
  border-color: #007bff;
}

button {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Liste des tâches */
#todo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#todo-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f9f9f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#todo-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#todo-list li.completed {
  text-decoration: line-through;
  color: #888;
  background: #e6e6e6;
}

/* Boutons */
.delete-btn {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.delete-btn:hover {
  color: #c0392b;
}

/* Checkboxes */
.task-toggle {
  margin-right: 10px;
  transform: scale(1.2);
  cursor: pointer;
  accent-color: #007bff;
}

/* Responsivité */
@media (max-width: 480px) {
  #todo-form {
    flex-direction: column;
  }

  #todo-input {
    border-radius: 8px;
    margin-bottom: 10px;
  }

  button {
    border-radius: 8px;
  }
}