body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #333;
}

.input-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#task-input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#add-btn {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #5cb85c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#add-btn:hover {
  background-color: #4cae4c;
}

#task-list {
  list-style: none;
  padding: 0;
}

.task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  transition: background 0.3s;
}

.task:hover {
  background: #f0f0f0;
}

.task-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.task input[type="text"] {
  border: none;
  background: transparent;
  font-size: 16px;
  width: 100%;
}

.task input[type="text"]:disabled {
  color: #888;
}

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

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 600px) {
  .input-section {
    flex-direction: column;
  }

  #task-input {
    width: 100%;
  }
}
