* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #000430;
  --secondaryBackground: #171c48;
  --text: #fff;
  --pink: #ff80bf;
  --lilac: #b388eb;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: "Poppins", sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 120px auto 0 auto;
  max-width: 500px;
}

.stats-container {
  padding: 30px;
  border-radius: 20px;
  border: 2px solid var(--pink);
  display: flex;
  justify-content: space-between;
  gap: 50px;
  width: 100%;
}

.details {
  width: 100%;
}

#progressBar {
  width: 100%;
  height: 10px;
  background-color: var(--secondaryBackground);
  border-radius: 5px;
  margin-top: 20px;
}

#progress {
  width: 0%;
  height: 10px;
  background-color: var(--lilac);
  border-radius: 10px;
  transition: all 0.3s ease;
}

#numbers {
  width: 100px;
  height: 100px;
  background-color: var(--secondaryBackground);
  border: 2px solid var(--lilac);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 26px;
  font-weight: bold;
  color: var(--lilac);
}

form {
  margin-top: 60px;
  width: 100%;
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  padding: 16px;
  background: var(--secondaryBackground);
  border: 1px solid var(--pink);
  border-radius: 10px;
  outline: none;
  color: var(--text);
}

button {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lilac);
  color: var(--text);
  font-size: 22px;
  font-weight: bold;
  outline: none;
  border: none;
  cursor: pointer;
}

#task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
  width: 100%;
  list-style: none;
}

.taskItem {
  width: 100%;
  display: flex;
  background-color: var(--secondaryBackground);
  padding: 10px;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
}

.task {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task input {
  width: 20px;
  height: 20px;
}

.task.completed p {
  text-decoration: line-through;
  color: var(--lilac);
}

.taskItem img {
  width: 24px;
  height: 24px;
  margin: 0 10px;
  cursor: pointer;
}

@media (max-width: 550px) {
  .container {
    margin: 40px auto 0 auto;
    max-width: 90%;
    padding: 0 10px;
  }
  .stats-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  form {
    margin-top: 60px;
    width: 100%;
    display: flex;
    gap: 10px;
  }

  input {
    flex: 1;
  }

  button {
    width: 60px;
    height: 50px;
    flex-shrink: 0;
  }
}
