body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: white;
  transition: background-color 0.3s, color 0.3s;
}

.dark-mode {
  background-color: #121212;
  color: white;
}

.container {
  width: 90%;
  max-width: 800px;
  margin: 30px auto;
  background-color: #007bff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
}

.todo-box {
  background: white;
  border-radius: 10px;
  padding: 20px;
}

h1 {
  color: white;
}

input,
select {
  padding: 10px;
  margin: 5px;
  border-radius: 6px;
  border: 2px solid #007bff;
  font-size: 14px;
}

button {
  padding: 10px 15px;
  margin: 5px;
  border: none;
  background: #007bff;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  flex-wrap: wrap;
}

li.completed span {
  text-decoration: line-through;
  color: gray;
}

.task-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.buttons {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.edit-btn,
.delete-btn {
  padding: 5px 10px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.edit-btn {
  background-color: #007bff;
  color: white;
}

.delete-btn {
  background-color: red;
  color: white;
}

.top-controls {
  margin: 10px 0;
}

.stats {
  margin: 10px 0;
  font-weight: bold;
}

.dark-mode .todo-box {
  background: #222;
}

.dark-mode li {
  background-color: #444;
}

@media screen and (max-width: 600px) {
  .task-left {
    align-items: center;
  }
}