/* src/client/assets/styles.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: #333;
  background: #f5f5f5;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
}

nav {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 30px;
  padding: 15px 20px;
  box-shadow: 0 2px 4px #0000001a;
}

nav a {
  color: #007bff;
  text-decoration: none;
  transition: color .2s;
  font-weight: 500;
}

nav a:hover {
  color: #0056b3;
}

main {
  background: #fff;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  box-shadow: 0 2px 8px #0000001a;
}

h1 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 2rem;
}

h2 {
  color: #34495e;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

ul {
  list-style: none;
}

main > ul:not(#list) {
  margin-left: 20px;
}

main > ul:not(#list) li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 20px;
}

main > ul:not(#list) li:before {
  content: "•";
  position: absolute;
  color: #007bff;
  left: 0;
}

code {
  color: #e83e8c;
  background: #f8f9fa;
  border-radius: 3px;
  padding: 2px 6px;
  font-family: Courier New, monospace;
  font-size: .9em;
}

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

#todo-text {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  flex: 1;
  padding: 12px;
  transition: border-color .2s;
  font-size: 16px;
}

#todo-text:focus {
  outline: none;
  border-color: #007bff;
}

#new-todo button {
  color: #fff;
  cursor: pointer;
  background: #007bff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  transition: background .2s;
  font-size: 16px;
  font-weight: 500;
}

#new-todo button:hover {
  background: #0056b3;
}

#list {
  margin-top: 20px;
}

#list li {
  display: flex;
  background: #f8f9fa;
  border-radius: 6px;
  align-items:  center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 12px;
  transition: background .2s;
}

#list li:hover {
  background: #e9ecef;
}

#list li.completed span {
  text-decoration: line-through;
  color: #6c757d;
}

#list input[type="checkbox"] {
  cursor: pointer;
  width: 20px;
  height: 20px;
}

#list span {
  cursor: pointer;
  user-select: none;
  flex: 1;
}

#list .delete-btn {
  color: #fff;
  cursor: pointer;
  background: #dc3545;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  transition: background .2s;
  font-size: 14px;
}

#list .delete-btn:hover {
  background: #c82333;
}
