*,
*:before,
*:after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  height: 100vh;
  background: rgb(250,240,232);
  background: linear-gradient(0deg, rgba(250,240,232,1) 16%, rgba(197,104,105,1) 82%);
}
body {
    transition: background 0.5s ease, color 0.5s ease; /* Smooth transition */
  }


  
  body.day-mode {
    background-color: white;
    color: black;
    background-image: url('path/to/your/day-background.jpg'); 
    background-size: cover; 
  }
  
  body.night-mode {
    background: rgb(180,176,176);
background: linear-gradient(0deg, rgba(180,176,176,1) 0%, rgba(9,9,9,1) 83%);
    background-size: cover;
  }
.app {
  font-family: "Poppins", sans-serif;
  width: min(95vw, 500px);
  position: absolute;
  margin: auto;
  margin-top: 100px;
  left: 0;
  right: 0;
  top: 30px;
}
.container {
  padding: 30px 40px;
  background-color: #f1f8fb;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-radius: 0.8em;
}
#wrapper {
  position: relative;
  width: 100%;
  margin-top: 50px;
  
  border-radius: 5px;
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 30px;
}
#wrapper input {
  width: 100%;
  font-family: "Poppins", sans-serif;
  background-color: transparent;
  color: #111111;
  font-size: 0.9em;
  border: none;
  border-bottom: 2px solid #d1d3d4;
  padding: 1em 0.5em;
}
#wrapper input:focus {
  outline: none;
  border-color: #5a95ff;
}
#wrapper button {
  position: relative;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1em;
  background-color: #5a95ff;
  border: none;
  color: #ffffff;
  cursor: pointer;
  outline: none;
}
#tasks {
  margin-top: 1em;
  border-radius: 10px;
  width: 100%;
  position: relative;
  padding: 1em 0.5em;
}
.task {
  background-color: #ffffff;
  padding: 0.8em 1em;
  display: grid;
  grid-template-columns: 1fr 8fr 2fr 2fr;
  gap: 1em;
  border-radius: 0.5em;
  box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.05);
  align-items: center;
  cursor: pointer;
}
.task:not(:first-child) {
  margin-top: 1em;
}
.task input[type="checkbox"] {
  position: relative;
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 2px solid #e1e1e1;
}
.task input[type="checkbox"]:before {
  content: "";
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}
.task input[type="checkbox"]:checked {
  background-color: #5a95ff;
  border-color: #5a95ff;
}
.task input[type="checkbox"]:checked:before {
  position: absolute;
  content: "\f00c";
  color: #ffffff;
  font-size: 0.8em;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.task span {
  font-size: 15px;
  font-weight: 400;
  word-break: break-all;
}
.task button {
  color: #ffffff;
  width: 100%;
  padding: 1em 0;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  outline: none;
}
.edit {
  background-color: #5a95ff;
}
.delete {
  background-color: #ff5c5c;
}
#pending-tasks span {
  color: #5a95ff;
}
.completed {
  text-decoration: line-through;
  color: #a0a0a0;
}
#error {
  text-align: center;
  display: none;
  background-color: #ffffff;
  color: #ff5c5c;
  margin-top: 1.5em;
  padding: 1em 0;
  border-radius: 0.5em;
}

