@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(to right, rgb(36, 128, 214), rgb(14, 13, 12));
}

.wrapper {
  max-width: 405px;
  padding: 28px 0 30px;
  margin: 137px auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.wrapper header {
  font-size: 30px;
  font-weight: 600;
  text-align: center;
  padding-bottom: 30px;
  background-image: linear-gradient(to bottom, #7209b7, #48cae4);
  color: black;
  background-clip: text;
  -webkit-background-clip: text;
  /* Adicionado: */
  -webkit-text-fill-color: transparent;
}

.task-input {
  height: 52px;
  padding: 0 25px;
  position: relative;
}

.task-input figure {
  position: absolute;
  top: 50%;
  transform: translate(17px, -50%);
  opacity: 0.3;
}

.task-input input {
  height: 100%;
  width: 100%;
  outline: none;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #999;
  padding: 0 20px 0 53px;
}

.task-input input:focus,
.task-input input.active{
padding-left: 52px;
border: 2px solid #5e60ce;
}

.task-input input::placeholder {
  color: #bfbfbf;
}

.controls, li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls {
  padding: 18px 25px;
  border-bottom: 1px solid #ccc;
}

.filters span {
  cursor: pointer;
  color: #444444;
  margin: 0 8px;
  font-size: 17px;
}

.filters span.active{
  color: #003049;
}

.filters span:first-child {
  margin-left: 0;
}

.filters span.active {
  background-image: linear-gradient(to bottom, #7209b7, #00b4d8);
  color: black;
  background-clip: text;
  -webkit-background-clip: text;
  /* Adicionado: */
  -webkit-text-fill-color: transparent;
}

.clear-btn:active {
  outline: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  border-radius: 5px;
  padding: 7px 13px;
  background-color: linear-gradient(to right, #7400b8, #5390d9);
  transform: translateY(2px);

}

.clear-btn:hover {
  background-color: linear-gradient(to right, #5e60ce, #5390d9);
}

.controls .clear-btn {
  outline: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  border-radius: 5px;
  padding: 7px 13px;
  background: linear-gradient(to right, #5e60ce, #5390d9);
}

.task-box{
  margin-top: 20px;
  margin-right: 5px;
  padding: 0 20px 10px 25px;
}
.task-box .task {
  list-style: none;
  font-size: 17px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ccc;
}

.task-box .task:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.task label {
  display: flex;
}

.task label p.checked {
  opacity: 0.5;
  text-decoration: line-through;
}

.task label input {
  margin-top: 6px;
  margin-right: 12px;
}

.task .settings {
  cursor: pointer;
  position: relative;
}

.settings .task-menu {
  position: absolute;
  padding: 5px 0;
  right: -5px;
  bottom: -65px;
  z-index: 10;
  transform: scale(0);
  border-radius: 5px;
  background: #fff;
  transform-origin: top right;
  transition: transform 0.2s ease;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

.task-box .task:last-child .task-menu{
  bottom: 0;
  transform-origin: bottom right;
}

.task-box .task:first-child .task-menu{
  bottom: -65px;
  transform-origin: top right;
}

.settings:hover .task-menu.show {
  transform: scale(1);
}

.task-menu li {
  height: 25px;
  font-size: 16px;
  padding: 17px 15px;
  margin-bottom: 2px;
  cursor: pointer;
  justify-content: flex-start;
}

.task-menu li:last-child {
  margin-bottom: 0;
}

.task-menu li:hover {
  background-image: linear-gradient(to bottom, #5390d9, #5390d9);
}

.task-menu li:active {
  color: #fff;
  transform: translateY(4px);
  cursor: pointer;
}

.task-menu li:hover {
  color: #fff;
}

.task-menu li i {
  padding-right: 8px;
}

.settings :where(i, li){
  cursor: pointer;
}



/*mobile*/
@media (max-width: 400px) {
  body{
    padding: 0 10px;
  }
  .wrapper {
    padding: 20px 0;
  }
  .filters span{
    margin: 0 5px;
  }
  .task-input{
    padding: 0 20px;
  }
  .controls{
    padding: 18px 20px;
  }
  .task-box{
    margin-top: 20px;
    margin-right: 5px;
    padding: 0 15px 10px 20px;
  }
  .task label input{
    margin-top: 4px;
  }
}