* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  padding-top: 50px;
}

.app {
  background: white;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
}

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

.task-input input {
  flex: 1;
  padding: 8px;
}

.task-input button {
  padding: 8px 12px;
  cursor: pointer;
}

.task-list li {
  padding: 8px;
  margin-bottom: 6px;
  background: #eee;
  border-radius: 4px;
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-list li {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #eee;
  border-radius: 6px;
}

.task-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delete-btn {
  background: transparent;
  border: none;
  color: #888;
  font-size: 16px;
  cursor: pointer;
}

.delete-btn:hover {
  color: #ff4d4d;
}

.delete-btn {
  font-size: 18px;
  padding: 4px 8px;
}

.task-list li.done span {
  text-decoration: line-through;
  color: #999;
}

.task-list li span {
  cursor: pointer;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.filters {
  display: flex;
  gap: 6px;
}

.filter-btn {
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.filter-btn.active {
  border-color: #333;
  font-weight: bold;
}

.counter {
  margin: 0;
  color: #666;
  font-size: 14px;
}

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

.task-left input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.task-left span {
  cursor: default;
}

.task-list li:hover {
  background: #e9e9e9;
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  color: #999;
}

.star-btn:hover {
  color: #333;
}

.task-list li.important {
  border: 1px solid #333;
  background: #fff7d6;
}

body {
  background: linear-gradient(135deg, #1b0f2a, #2a144a);
  display: flex;
  justify-content: center;
  padding-top: 50px;
}

.app {
  background: rgba(20, 12, 34, 0.95);
  color: #f1ecff;
  box-shadow: 0 12px 30px rgba(138, 77, 255, 0.25);
}

.task-input input {
  background: #120a20;
  color: #f1ecff;
  border: 1px solid #3b2468;
}

.task-input button {
  background: #8a4dff;
  color: #fff;
  border: none;
}

.task-list li {
  background: #1c1230;
}

.task-list li:hover {
  background: #26184a;
}

.counter {
  color: #cbbcff;
}

.filter-btn {
  background: transparent;
  color: #f1ecff;
  border-color: #3b2468;
}

.filter-btn.active {
  border-color: #8a4dff;
}

.app {
  border-radius: 14px;
}

/* Improve contrast for task items */
.task-list li {
  color: #f1ecff;              /* text color */
}

.task-list li:hover {
  background: #2b1c52;        /* slightly lighter hover */
}

/* Important tasks */
.task-list li.important {
  background: #3a2468;        /* brighter purple for important */
  border: 1px solid #8a4dff;
}

.task-list li.important:hover {
  background: #4a2f8a;        /* lighter on hover */
}

/* Done tasks (still readable) */
.task-list li.done span {
  color: #c7b9ff;
}

.task-left input[type="checkbox"] {
  accent-color: #8a4dff;
}

.star-btn {
  color: #cbbcff;
}

.star-btn:hover {
  color: #ffd86b;
}

.task-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: 8px;
}

.ctrl-btn {
  background: transparent;
  border: 1px solid #3b2468;
  color: #f1ecff;
  width: 26px;
  height: 22px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  font-size: 14px;
}

.ctrl-btn:hover {
  border-color: #8a4dff;
}
