/* Import Google Font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --main-color: #10c7dd;
  --dark-color: #000000;
  --light-color: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--dark-color);
  z-index: 99;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: var(--light-color);
  text-decoration: none;
  list-style: none;
}
.logo a i {
  color: var(--main-color);
}

.logo a span {
  color: var(--main-color);
}

.body__container {
  width: 100%;
  height: 80vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--main-color), #0a1747);
}

::selection {
  color: #fff;
  background: var(--main-color);
}

.wrapper {
  max-width: 395px;
  padding: 28px 0 30px;
  margin: 100px auto;
  background: var(--light-color);
  border-radius: 7px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

.task-input input {
  height: 100%;
  width: 100%;
  outline: none;
  font-size: 18px;
  border-radius: 5px;
  padding: 0 20px 0 53px;
  border: 1px solid var(--dark-color);
}

.task-input input:focus,
.task-input input.active {
  padding-left: 52px;
  border: 2px solid var(--main-color);
}

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

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

.controls {
  padding: 18px 25px;
  border-bottom: 1px solid var(--dark-color);
}

.filters span {
  margin: 0 8px;
  font-size: 17px;
  color: var(--dark-color);
  cursor: pointer;
}

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

.filters span.active {
  color: var(--main-color);
}

.controls .clear-btn {
  border: none;
  opacity: 0.6;
  outline: none;
  color: var(--light-color);
  cursor: pointer;
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  pointer-events: none;
  transition: transform 0.25s ease;
  background: linear-gradient(135deg, var(--main-color) 0%, #172760 100%);
}

.clear-btn.active {
  opacity: 0.9;
  pointer-events: auto;
}

.clear-btn:active {
  transform: scale(0.93);
}

.task-box {
  margin-top: 20px;
  margin-right: 5px;
  padding: 0 20px 10px 25px;
}

.task-box.overflow {
  overflow-y: auto;
  max-height: 300px;
}

.task-box::-webkit-scrollbar {
  width: 5px;
}

.task-box::-webkit-scrollbar-track {
  background: var(--dark-color);
  border-radius: 25px;
}

.task-box::-webkit-scrollbar-thumb {
  background: var(--dark-color);
  border-radius: 25px;
}

.task-box .task {
  list-style: none;
  font-size: 17px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  align-items: flex-start;
  border-bottom: 1px solid var(--dark-color);
}

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

.task-box .task label {
  display: flex;
  align-items: flex-start;
}

.task label input {
  margin-top: 7px;
  accent-color: var(--main-color);
}

.task label p {
  user-select: none;
  margin-left: 12px;
  word-wrap: break-word;
}

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

.task-box .settings {
  position: relative;
}

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

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

.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;
}

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

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

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

.settings li:hover {
  background: var(--light-color);
}

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

/* Footer */
footer {
  position: absolute;
  left: 0;
  right: 0;
  height: auto;
  width: 100vw;
  height: auto;
  padding-top: 40px;
  color: var(--light-color);
  background: var(--dark-color);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.footer-content h3 {
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 3rem;
}

.footer-content h3 span {
  color: var(--main-color);
}

.footer-content p {
  max-width: 500px;
  margin: 10px auto;
  line-height: 28px;
  font-size: 14px;
  color: #cacdd2;
}
.socials {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 3rem 0;
}
.socials li {
  margin: 0 10px;
}
.socials a {
  text-decoration: none;
  color: #fff;
  padding: 5px;
}
.socials a i {
  font-size: 1.5rem;
  width: 20px;

  transition: color 0.4s ease;
}
.socials a:hover i {
  color: var(--main-color);
}

@media (max-width: 400px) {
  .body__container {
    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;
  }
}
