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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.container {
  width: 100%;
  max-width: 520px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 30px;
  color: #e94560;
  letter-spacing: 4px;
  text-transform: uppercase;
}

#todo-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#todo-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #16213e;
  border-radius: 8px;
  background: #16213e;
  color: #eee;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

#todo-input:focus {
  border-color: #e94560;
}

#todo-form button {
  padding: 14px 24px;
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

#todo-form button:hover {
  background: #c73652;
}

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.filter {
  flex: 1;
  padding: 8px;
  background: transparent;
  color: #888;
  border: 1px solid #16213e;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.filter:hover {
  color: #ccc;
  border-color: #333;
}

.filter.active {
  color: #e94560;
  border-color: #e94560;
}

#todo-list {
  list-style: none;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #16213e;
  border-radius: 8px;
  margin-bottom: 8px;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.todo-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #e94560;
  cursor: pointer;
  flex-shrink: 0;
}

.todo-item span {
  flex: 1;
  font-size: 1rem;
  transition: all 0.2s;
  word-break: break-word;
}

.todo-item.completed span {
  text-decoration: line-through;
  color: #555;
}

.todo-item .delete-btn {
  background: none;
  border: none;
  color: #555;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.todo-item .delete-btn:hover {
  color: #e94560;
  background: rgba(233, 69, 96, 0.1);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  color: #666;
  font-size: 0.85rem;
}

.footer.hidden {
  display: none;
}

#clear-completed {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.2s;
}

#clear-completed:hover {
  color: #e94560;
}
