*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
.container{
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #111112, #000000);
    padding: 10px;
}
.todo-app{
    max-width: 1000px;
    width: 100%;
    margin: 0px auto 20px auto;
    padding: 20px ;
    background: #1e1e1e;
    border-radius: 20px;
}
h2{
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #ffffff;
    padding-top: 40px;
    font-size: clamp(1.8rem, 5vw, 5rem);
    font-family: 'poppins';
}

#quoteHeading {
  text-align: center;
  margin: 20px 0;
  color: #ffffff;
    font-size: clamp(1rem, 3vw, 2rem);
  font-style: italic;
  opacity: 0.7;
  font-family: 'Times New Roman', Times, serif;
}

.progress-container {
  max-width: 1000px;
  width: 100%;
  background: #1e1e1e;
  border-radius: 10px;
  height: 15px;
  margin: 20px auto 0 auto;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #c2c5c2; /* green */
  transition: width 0.3s ease;
}

#progressText {
  font-size: 18px;
  margin-top: 4px;
  margin-bottom: 6px;
  min-height: 18px;
  height: 18px;
  text-align: center;
    color: #c7c6c6;
    transition-delay: 100ms;
}

.row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
    padding: 20px;
    background: fixed #2c2c2c;
}
input{
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px;
    font-weight: 14px;
    font-size: 20px;
    color: #fff
}


button{
    flex: 0 0 auto;
    border: none;   
    outline: none;
    padding: 20px 15px;
    border-radius: 35px;
    font-size: 20px;
    background: #1e1e1e;
}
.row button{
background: #1b1919;
}
.row button:hover{
    border-radius: 30px;
    transform: scale(1.05);
}
.empty{
    text-align: center;
    color: #c7c6c6;
    font-size: 20px;
    display: none;
}
#listContainer li{
    position: relative;
    list-style: none;
    font-size: 20px;
    padding: 15px 90px  15px 15px;
    color: #fff;
    user-select: none;
    cursor: pointer;
    border-bottom: 1px solid #333;
}


#listContainer li .checkbox{
     position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 5px;
    cursor: pointer;
}
#listContainer li .checkbox.checked{
    
    background: #555;
    border-color: #555;
    justify-content: center ;
    align-items: center;
    font-size: 1rem;
    
}

#listContainer li .task-text {
    display: block;
    word-break: break-word;
    padding-left: 30px;

}
.task-text.completed {
      text-decoration: line-through;
      color: #777;
}



.task-buttons button{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    line-height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}
.task-buttons button.delete:hover , button.edit:hover{
    background: #333;
    border-radius: 30px;
}  

#listContainer li button.delete {
    right: 10px;
   

}

#listContainer li  button.edit {
    right: 50px; 
    
}

.toast {
  position: fixed;
  top: 40px;
  right: 40px;
  background: #333;
  color: #fff;
  padding: 16px 24px;      
  border-radius: 8px;
  font-size: 1 rem;         
  max-width: 400px;        
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(20px);
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive styles for tablets and phones */

@media (min-width: 768px) {
  .toast {
    font-size: 1.4rem;
    padding: 18px 28px;
    max-width: 700px;
  }
}
@media (min-width: 1024px) {
  .toast {
    font-size: 1.5rem;
    padding: 20px 32px;
    max-width: 800px;
  }
}


@media (max-width: 480px) {
  .todo-app {
    padding: 5px;
    border-radius: 8px;
    margin: 1px auto 5px auto;
  }

  #progressText {
    font-size: 14px;
    margin-top: 1px;
    margin-bottom: 3px;
    min-height: 14px;
    height: 14px;
  }
  .row {
    padding: 5px;
    gap: 6px;
    flex-direction: column;

  }
  input {
    font-size: 14px;
    padding: 6px;
    margin-bottom: 4px;
  }
  button, .row button {
    font-size: 14px;
    padding: 10px 8px;
    border-radius: 20px;
    width: 96%;
    margin-top: 0;
  }
  #listContainer li {
    font-size: 14px;
    padding: 10px 40px 10px 10px;
  }
  .task-buttons button {
    width: 24px;
    height: 24px;
    font-size: 12px;
    line-height: 24px;
    right: 8px !important;
  }
  #listContainer li button.edit {
    right: 32px !important;
  }
  h2 {
    font-size: clamp(1rem, 8vw, 1.5rem);
    padding-top: 10px;
  }
  #quoteHeading {
    font-size: clamp(0.8rem, 5vw, 1rem);
  }
    .toast {
    font-size: 0.85rem;
    padding: 10px 12px;
    max-width: 90vw;
    right: 8px;
    top: 8px;
  }
}

