body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
}

.todo-container {
  max-width: 500px;
  margin: 100px auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.todo-container h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.input-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.input-section input {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.input-section button {
  padding: 10px 15px;
  background-color: #007BFF;
  border: none;
  color: white;
  border-radius: 5px;
  opacity: 0.6;
  cursor: not-allowed;
}

.todo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.todo-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
}

.task-text {
  flex-grow: 1;
  font-size: 16px;
  color: #333;
}

.actions {
  display: flex;
  gap: 10px;
}

.actions button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.edit-btn:hover {
  color: #007BFF;
}

.remove-btn:hover {
  color: red;
}

@media (max-width: 600px) {
  .todo-container {
    margin: 20px;
    padding: 20px;
  }

  .input-section {
    flex-direction: column;
    gap: 10px;
  }

  .input-section input,
  .input-section button {
    width: 100%;
    font-size: 16px;
  }

  .todo-list li {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .task-text {
    margin-bottom: 10px;
  }

  .actions {
    width: 100%;
    justify-content: flex-end;
  }
}
