/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f4f9;
  color: #333;
  line-height: 1.6;
}

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

header h1 {
  font-size: 24px;
  margin-bottom: 5px;
}

header p {
  color: #666;
  font-size: 14px;
}

.add-row {
  display: flex;
  margin: 20px 0;
}

.add-row input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.add-row button {
  padding: 10px 20px;
  border: none;
  background: #007BFF;
  color: white;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.add-row button:hover {
  background: #0056b3;
}

.filters {
  margin-bottom: 15px;
}

.filters .tab {
  background: #eaeaea;
  border: none;
  padding: 6px 12px;
  margin-right: 5px;
  cursor: pointer;
  border-radius: 4px;
}

.filters .tab.active {
  background: #007BFF;
  color: white;
}

.list {
  list-style: none;
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.item.completed .title {
  text-decoration: line-through;
  color: #888;
}

.title {
  flex: 1;
  margin: 0 10px;
  border: none;
  background: transparent;
  font-size: 16px;
}

button.delete {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

button.delete:hover {
  background: #a71d2a;
}

.footer {
  margin-top: 15px;
  color: #555;
  font-size: 14px;
}
