/* General Styles */
body {
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  margin: 0;
  padding: 0;
  text-align: center;
  color: #333;
}

header {
  background: #333;
  color: #fff;
  padding: 20px;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  margin-top: 5px;
  font-size: 1rem;
}

/* To-Do Section */
.todo-section {
  max-width: 500px;
  margin: 30px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
}

#taskInput {
  width: 70%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

#addTaskBtn {
  padding: 10px 15px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

#addTaskBtn:hover {
  background: #ffd369;
  color: #000;
}

#taskList {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

#taskList li {
  padding: 10px;
  margin-bottom: 8px;
  background: #f1f1f1;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.task-buttons {
  display: flex;
  gap: 5px;
}

.task-buttons button {
  padding: 5px 8px;
  font-size: 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.task-buttons .delete {
  background: #e74c3c;
  color: #fff;
}

.task-buttons .complete {
  background: #2ecc71;
  color: #fff;
}

/* Footer */
footer {
  margin-top: 40px;
  padding: 15px;
  background: #333;
  color: #fff;
}
