/* Todo List 样式 */
.todo-container {
  max-width: 720px;
  margin: 30px auto;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.todo-container h2 {
  margin-bottom: 20px;
  text-align: center;
}

.todo-input {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.todo-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
}

.todo-input button {
  padding: 10px 16px;
  background: #30a9de;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px; /* 与输入框高度一致，可根据实际input高度调整 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 删除按钮美化 */
.del-btn {
  background: #f44336;          /* 红色背景 */
  border: none;
  border-radius: 50%;           /* 圆形按钮 */
  color: #fff;                  /* 白色图标 */
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-left: 8px;
}

.del-btn:hover {
  background: #d32f2f;          /* 深红色 */
  transform: scale(1.1);        /* 悬停放大 */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 每个待办项横向排列 */
#tasks li {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* 左边是任务，右边是删除 */
  padding: 8px 12px;
  background: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* 左侧内容（复选框+文字） */
#tasks li label {
  display: flex;
  align-items: center;
  gap: 6px;
}