/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Form Container */
form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 40px 30px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  transition: transform 0.3s ease;
}

form:hover {
  transform: scale(1.02);
}

h1 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  letter-spacing: 1px;
}

/* Input Fields */
input[type="text"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
  background: #f5f5f580;
  color: #333;
  font-size: 16px;
  transition: background 0.3s;
}

input[type="text"]:focus {
  background: #fff;
  outline: 2px solid #9370db;
}

/* Submit Button */
.del,
.clean,
input[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #6a5acd;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.4s, transform 0.2s;
  margin-bottom: 10px;
}

input[type="submit"]:hover {
  background: #836fff;
  transform: translateY(-2px);
}

/* Task List */
ol {
  list-style: none;
  margin-top: 20px;
  padding-left: 0;
}

li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  color: #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

li:hover {
  background: rgba(255, 255, 255, 0.15);
}

li input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
  cursor: pointer;
}

.done {
  text-decoration: line-through;
  color: #aaa;
}

/* Delete Button */
li button {
  background: transparent;
  border: none;
  font-size: 15px;
  cursor: pointer;
  color: #ff6b6b;
  transition: transform 0.2s;
}

li input:hover {
  transform: scale(1.3);
}


/* del all btn */
.delete{
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  text-align: center;
}
.delete .del:hover{
  background: #e4163c9d;
  transform: translateY(-2px);
}