@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  overflow-y: hidden;
  font-family: "Jost", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: url(../assets/seaview-n-cEAB4vyUPgw-unsplash.jpg) no-repeat center
    center/cover;
}
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  padding: 0 10px;
  overflow: hidden;
}
.empty-image {
  width: 100%;
  /* or adjust as needed */
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.6;
}

.todo-app {
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  min-height: 500px;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 20px;
  color: #fff;
  border-radius: 20px;
  box-shadow: 0px 0px 100px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(26px);
  overflow: hidden;
}
.todo-app h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
  word-break: break-word;
}
.input-area {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.input-area input {
  flex: 1;
  padding: 10px 17px;
  font-size: 1.1rem;
  border: none;
  border-radius: 22px;
  background: rgba(255, 194, 209, 0.3);
  color: #dddcdc;
}
.input-area input::placeholder {
  color: #d4d4d4;
  border: none;
}
.input-area button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 10px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  background-color: rgba(255, 194, 209, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: all 0.2 ease;
}
.input-area button:hover {
  transform: scale(1.1);
  background-color: #c03030;
}
.todos-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
#task-list {
  width: 100%;
  max-height: 45vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  padding-bottom: 30px;
}
#task-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  background-color: rgba(255, 194, 209, 0.3);
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 30px;
  font-size: 1rem;
  color: #fff;
  position: relative;
  transition: box-shadow 0.2s ease;
  word-break: break-word;
  min-height: 40px;
}
#task-list li:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#task-list li .checkbox {
  min-width: 20px;
  appearance: none;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2 ease;
  margin-right: 6px;
  position: relative;
}
.stat-container {
  padding: 15px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.18);
}
.details {
  width: 100%;
}
.details h3 {
  color: #fff;
}
#progressBar {
  width: 100%;
  height: 7px;
  background: rgba(255, 194, 209, 0.3);
  border-radius: 20px;
  position: relative;
  margin-top: 15px;
}
#numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #ff6f91;
  border: 2px solid rgba(255, 194, 209, 0.3);
  font-weight: bold;
  border-radius: 50%;
  font-size: 1.5rem;
}
#progress {
  width: 0%;
  height: 100%;
  background: #ff6f91;
  border-radius: 20px;
  transition: width 0.3 ease;
}
#task-list li .checkbox:checked {
  background: #ff6f91;
  transform: scale(1.1);
}
#task-list li.completed span {
  text-decoration: 2px solid line-through #000;
  color: #000;
}
#task-list li .checkbox:checked::before {
  content: "\2713";
  color: #fff;

  left: 4px;
  top: 0px;
  font-size: 1rem;
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 20px;
}
#task-list li span {
  flex: 1;
  word-wrap: break-word;
  font-size: 1rem;
  min-width: 0;
}
.task-button {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.task-button button {
  background: rgba(255, 194, 209, 0.3);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2 ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
.task-button button:hover {
  transform: scale(1.2);
}
.task-button .edit-btn {
  background: #ffbf00;
}
.task-button .delete-btn {
  background: #ff6f91;
}
@media (max-width: 600px) {
  .container {
    padding: 0 2vw;
    height: 100vh;
    min-width: 100vw;
  }
  .todo-app {
    max-width: 98vw;
    min-height: 60vh;
    padding: 1rem 0.5rem;
    gap: 10px;
  }
  #task-list {
    max-height: 35vh;
    padding-bottom: 60px;
  }
  #numbers {
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
  }
  .stat-container {
    padding: 10px 5px;
    gap: 10px;
  }
  .empty-image {
    width: 90vw;
  }
}
