@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(https://cdn.prod.website-files.com/60babc2f4a97cece9858d8e7/6319040a3f317243c1246551_hq720.jpeg)no-repeat center center/cover;
    font-family: "Jost", sans-serif;
}
.container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}
@media (max-width: 480px){
    .input-area {
  
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }

  #task-input, #add {
    width: 100%;
  }

  #add {
    margin: 0;
  }
  .progress-wrapper {
    width: 100%;
    padding: 10px;
    gap: 6px;
    margin-bottom: 10px;
  }

  .progress-label,
  .progress-count {
    font-size: 0.9rem;
  }
  #heading {
    font-size: 1.5rem;
  }

  li {
    
    align-items: flex-start;
  }

  li button {
    margin-top: 5px;
  }
  body {
  overflow-x: hidden;
}

}
@media (max-width: 380px){
    .input-area {
      flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }

  #task-input, #add {
    width: 100%;
  }

  #add {
    margin: 0;
  }
  .progress-wrapper {
    width: 100%;
    padding: 10px;
    gap: 6px;
    margin-bottom: 10px;
  }

  .progress-label,
  .progress-count {
    font-size: 0.9rem;
  }
  #heading {
    font-size: 1.5rem;
  }

  li {
    flex-direction: column;
    align-items: flex-start;
  }

  
  body {
  overflow-x: hidden;
}

}
.todo-app{
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    color: white;
    border-radius: 15px;
    box-shadow: 0 0 100px rgba(0, 0,0, 0.5);
    border: 3px solid rgba(255, 255,255, 0.18);
    backdrop-filter: blur(10px);
    margin-top: 10px;
}
#heading{
    font-size: 3rem;
    color: white;
    font-family: jost, sans-serif;
   
}
.input-area{
    display: flex;
    gap: 10px;
    align-items: center;

}
#task-input{
    flex: 1;
    font-size: 1rem;
    border:none;
    border-radius: 8px;
    padding: 10px;
    padding-left: 20px;
    outline: none;
    background: rgba(208, 182, 248, 0.3);
    height: 50px;
    width: 240px;
    color: white;    
}
#task-input::placeholder{
    color: rgb(255, 251, 251);
}
#add{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0px;
    color: white;
    font-size: 1.1rem;
    outline: none;
    padding: 8px;
    height: 50px;
    width: 50px;
    border: none;
    border-radius: 8px;
    background: rgba(208, 182, 248, 0.3);
    border: 2px solid rgba(255, 255,255, 0.18);
    cursor: pointer;
    transition: all 0.2s ease;
}
#add:hover{
    transform: scale(1.3);
    color: white;
    background: rgb(66, 95, 146);
}
.todo-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -20px;
}
#task-list{
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    
}
li{
    width: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid rgba(255, 255,255, 0.18);
    border-radius: 5px;
    font-size: 23px;
    max-width: 300px;
    
}
.left-side {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  min-width: 0;
  overflow-wrap: break-word;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  
}
.right-side {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
}

.progress-wrapper {
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: rgba(255,255,255,0.1);
  padding: 12px;
  border-radius: 12px;
  color: white;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.18);
  margin-top: 10px;
  margin-bottom: -10px;
}


    .progress-label,
    .progress-count {
      font-weight: 500;
      min-width: 80px;
    }

    .progress-bar-container {
  width: 100%;
  height: 14px;
  background-color: #e0e0e0;
  border-radius: 9999px;
  overflow: hidden;
}

    .progress-bar-fill {
      height: 100%;
      width: 60%;
      background-color: #4ade80;
      border-radius: 9999px;
      transition: width 0.4s ease-in-out;
    }
.right-side button {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  color: white;
  background-color: rgba(255, 255, 255, 0.18);
}
.right-side button:hover{
  background-color: rgba(75, 66, 88, 0.3);
  
}
.left-side span{
  max-width: 70%;
}
.edit-input {
  max-width: 100%;
  color: white;
  flex: 1;
  font-size: 1rem;
  border: none;
  border-radius: 18px;
  padding: 10px;
  padding-left: 20px;
  outline: none;
  background: rgba(208, 182, 248, 0.3);
}
