:root {
  --background: #000430;
  --secondaryBackground: #171c48;
  --text: #fff;
  --purple: #828dff;
  --teal: #24feee;
}
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}
::selection{
  color: var(--purple);
  background: #fff;
}
body{
  background-color: var(--background);
  color: var(--text);
  text-transform: capitalize;
}
.container{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  max-width: 500px;
  margin: 120px auto;
  
}
#searchInput{
  width: 100%;
  margin-bottom: 20px;
}
.state-container{
  width: 100%;
  padding: 30px;
  border: 2px solid var(--purple);
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  gap: 50px ;
}
.details{
  width: 100%;
}
#progress-bar{
  width: 100%;
  height: 10px;
  border-radius: 5px ;
  background-color: var(--secondaryBackground );
  margin-top: 20px;
}
#progress{
  width: 50%;
  height: 10px;
  border-radius: 5px ;
  background-color: var(--teal);
  transition: all 0.3s ease ;
}
#numbers{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--purple);
  font-size: 30px;
  font-weight: bold ;
}
form{
  margin-top: 60px;
  display: flex;
  width: 100%;
  gap: 10px;
}
input{
  flex: 1;
 padding: 16px;
 color: var(--text);   
 border: 1px solid var(--purple);
 border-radius: 10px;
 outline: none;
 background-color: var(--secondaryBackground);
}
#addTaskBtn{ 
 width: 50px;
 height: 50px;
 background-color: var(--purple);
 display: flex;
 align-items: center;
 justify-content: center;
 border: 0;
 border-radius: 50%;
 color: var(--text);
 font-size: 30px;
 font-weight: bold;
 outline: none;
 cursor: pointer;
}
.edit {
  width: 50px;
  height: 50px;
  background-color: var(--secondaryBackground);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden; 
  position: relative;
  z-index: 0;
}

.edit img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  z-index: 1;
}
#taskList{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}
.taskItem{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
 color: var(--text);   
 border-radius: 10px;
 outline: none;
 background-color: var(--secondaryBackground);
}
.taskItem .task{
  display: flex;
  gap: 10px;
}
.task input {
  width: 20px;
  height: 20px;
}
.taskItem .task p {
  max-width: 350px;        
  word-wrap: break-word;   
  white-space: normal;     
  margin: 0;
}
.completed p {
  text-decoration: line-through;
  color: var(--teal);
}
.taskItem .icons img{
  width: 24px;
  height: 24px;
  margin: 0 10px ;
  cursor: pointer;
}
.d-none{
  display: none !important;
}
.d-block{
  display: block !important;
}
@media (max-width: 400px) {
  .taskItem .task p {
    max-width: 240px;  
  }
  .container{
    width: 95%;
   
  }
}
