body {
  font-family: Arial, sans-serif;
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 400px;
  margin: 50px auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #333;
}

.input-group {
  display: flex;
  margin-bottom: 20px;
}

#task-input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 4px 0 0 4px;
  outline: none;
  transition: border-color 0.3s;
}

#task-input:focus {
  border-color: #4caf50;
}

#add-btn {
  padding: 10px 20px;
  background-color: #4caf50;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: background-color 0.3s;
}

#add-btn:hover {
  background-color: #45a049;
}

#task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#task-list li {
  padding: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#task-list li.completed {
  text-decoration: line-through;
  color: #999;
}

.delete-btn {
  background-color: transparent;
  border: none;
  color: #cc0000;
  font-weight: bold;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 5px;
  transition: color 0.3s;
}

.delete-btn:hover {
  color: #ff4444;
}

.progress-wrapper {
  display: flex;
  height: 30px;
  border-radius: 15px;
  overflow: hidden;
  margin-top: 20px;
  font-weight: bold;
  font-size: 14px;
  color: white;
  user-select: none;
}

.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: width 0.4s ease;
}

.progress.done {
  background-color: #4caf50;
  width: 0;
}

.progress.remaining {
  background-color: #bbb;
  width: 100%;
  color: #333;
}
