
body {
  background-color: #000;
  color: #EAEAEA;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 40px 15px;
}


h1 {
  color: #B5EAEA;
  text-shadow: 0 0 15px #89CFF0;
  font-size: 2.2rem;
  letter-spacing: 1px;
  margin-bottom: 30px;
  text-align: center;
}

form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 500px;
}


input[type="text"] {
  flex: 1;
  min-width: 200px;
  background-color: #1B1B1B;
  color: #EAEAEA;
  border: 1px solid #333;
  box-shadow: 0 0 10px rgba(138, 180, 248, 0.2);
  padding: 10px;
  font-size: 18px;
  border-radius: 8px;
  outline: none;
  transition: 0.3s ease;
}

input[type="text"]:focus {
  border-color: #A1F7B5;
  box-shadow: 0 0 10px #A1F7B5;
}


button {
  border-radius: 8px;
  cursor: pointer;
  padding: 10px 15px;
  font-size: 16px;
  transition: 0.3s ease;
  border: none;
  min-width: 60px;
  box-sizing: border-box;
}


button[type="submit"] {
  background-color: #1B1B1B;
  color: #A1F7B5;
  border: 1px solid #A1F7B5;
  box-shadow: 0 0 10px #A1F7B5;
}
button[type="submit"]:hover {
  background-color: #2A2A2A;
  box-shadow: 0 0 20px #A1F7B5;
  transform: scale(1.05);
}


button[type="reset"] {
  background-color: #1B1B1B;
  color: #F7A1C4;
  border: 1px solid #F7A1C4;
  box-shadow: 0 0 10px #F7A1C4;
}
button[type="reset"]:hover {
  background-color: #2A2A2A;
  box-shadow: 0 0 20px #F7A1C4;
  transform: scale(1.05);
}


#allTask {
  margin-top: 30px;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#allTask div {
  background-color: #111;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px; /* spacing between text and buttons */
}


#allTask div span {
  flex: 1; /* take remaining space */
  word-break: break-word; /* prevent overflow */
}


#allTask button:nth-child(2) {
  background-color: #1B1B1B;
  color: #A1F7B5;
  border: 1px solid #A1F7B5;
  box-shadow: 0 0 5px #A1F7B5;
  padding: 5px 12px;
  min-width: 60px;
}
#allTask button:nth-child(2):hover {
  box-shadow: 0 0 15px #A1F7B5;
}


#allTask button:nth-child(3) {
  background-color: #1B1B1B;
  color: #F7A1C4;
  border: 1px solid #F7A1C4;
  box-shadow: 0 0 5px #F7A1C4;
  padding: 5px 12px;
  min-width: 60px;
}
#allTask button:nth-child(3):hover {
  box-shadow: 0 0 15px #F7A1C4;
}

/*  Responsive Design */
@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }
  form {
    flex-direction: column;
    align-items: stretch;
  }
  input[type="text"] {
    width: 100%;
  }
  button {
    width: 100%;
  }
  #allTask div {
    flex-direction: column;
    align-items: stretch;
  }
  #allTask div button {
    width: 100%;
  }
}


