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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1A1A2E;
  color: #FFFFFF;
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #F6E05E;
}

.add-form {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.add-form input {
  flex: 1;
  padding: 15px 20px;
  font-size: 1rem;
  border: 2px solid #6B46C1;
  border-radius: 8px;
  background: #2D2D44;
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s;
}

.add-form input::placeholder {
  color: #888;
}

.add-form input:focus {
  border-color: #F6E05E;
}

.add-form button {
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  background: #6B46C1;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.add-form button:hover {
  background: #805AD5;
}

.error {
  background: #ED8936;
  color: #FFFFFF;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.todo-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: #2D2D44;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid #6B46C1;
}

.todo-item.completed {
  border-left-color: #ED8936;
  opacity: 0.7;
}

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

.toggle-form,
.delete-form {
  display: flex;
}

.toggle-btn {
  width: 28px;
  height: 28px;
  border: 2px solid #6B46C1;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.toggle-btn:hover {
  border-color: #F6E05E;
}

.checkbox {
  color: #F6E05E;
  font-size: 1rem;
  font-weight: bold;
}

.todo-title {
  flex: 1;
  font-size: 1rem;
}

.delete-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.delete-btn:hover {
  background: #ED8936;
  color: #FFFFFF;
}

.empty {
  text-align: center;
  padding: 40px;
  color: #888;
  font-style: italic;
}
