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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f9;
}

.card {
  width: 380px;
  background: #ffffff;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.title h1 {
  font-size: 22px;
  margin-bottom: 4px;
  color: #222;
}

.title p {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
}

.input-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.input-box input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

.input-box input:focus {
  border-color: #5b85e6;
  box-shadow: 0 0 0 3px rgba(91, 133, 230, 0.2);
}

.input-box button {
  padding: 8px 12px;
  background: #5b85e6;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.input-box button:hover {
  background: #4a73d4;
}

.empty {
  color: #7b7b7b;
  font-size: 14px;
  margin-bottom: 8px;
}

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

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

.filter-btn {
  padding: 5px 8px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}

.filter-btn.active {
  background: #e8efff;
  border-color: #5b85e6;
}

#clearBtn {
  padding: 6px 10px;
  border: none;
  background: #f0f0f0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

#clearBtn:hover {
  background: #e5e5e5;
}

ul {
  list-style: none;
}

li {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #ececec;
}

li label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

li input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

li span {
  cursor: pointer;
}

li.done span {
  text-decoration: line-through;
  color: #9b9b9b;
}

li button.delete {
  background: #ff5c5c;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

li button.delete:hover {
  background: #e34b4b;
}
