
@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{
    font-family: "Jost", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background:url(./ph.jpeg) no-repeat center center/cover;
}
.container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}
.todo-app{
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    color: #fff;
    border-radius: 20px;
    box-shadow: 0 0 100px rgba(0,0,0,0.5);
    border: 3px solid rgba(255, 255, 255,0.16);
    backdrop-filter: blur(10px);
}
.todo-app h1{
    font-size: 2rem;
}
.stat-container{
    padding:15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;

}
.details{
    width: 100%;
}
.details h3{
    color:#fff;
}
#progressbar{
    width: 100%;
    height: 7px;
    background:  rgba(144, 227, 233, 0.5);
    border-radius: 10px;
    margin: 15px;
    position: relative;
}
#progress{
    width: 50%;
    height: 100%;
    background: aqua;
    border-radius: 20px;
    transition: width 0.3s ease;
}
#numbers{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
    border-radius: 50%;
    font-size: 1.5rem;
}
.Input{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.Input input{
    flex: 1;
    padding: 10px 17px;
    font-size: 1.1rem;
    border: none;
    outline: none;
    border-radius: 22px;
    background: rgba(190, 179, 182, 0.3);
    color:black;
}
.Input input::placeholder{
    color:rgb(234, 221, 221)
}
.Input button{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding:8px;
    border-radius: 50%;
    color: #1e1b57;
    font-size: 1.1rem;
    background: rgb(72, 48, 161);
    border:2px solid rgba(25, 23, 72, 0.3);
    cursor:pointer;
    transition:all 0.2s ease;
}
 button:hover{
    transform: scale(1.1);
    background: #080808;
}
.todos-cointainer{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content:center; 
}
#tasklist{
    width:100%;
}
#tasklist li{
   display: flex;
    align-items: center;
    justify-content:space-between; 
    background: rgba(22, 22, 120, 0.5);
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 30px;
    font-size: 1.2rem;
    color: #fff;
    position: relative;
    transition: box-shadow 0.2s ease;
}
#tasklist li:hover{
    box-shadow: 0 0 10px rgb(0, 0, 0, 0.5);
}
#tasklist li.checkbox{
    min-width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255,0.3);
    background: transparent;
    appearance: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}
#tasklist li.checkbox:checked{
    background: aqua;
    transform: scale(1.1);
}
#tasklist li.checkbox:checked::before{
    content: '\2713';
    color: #fff;
    display: flex;
    justify-self: center;
    align-items: center;
    font-size: 1rem;
}
#tasklist li span{
    flex: 1;
    margin-left: 10px;
    word-wrap: break-word;
}
#tasklist li.completed span{
    text-decoration: 2px line-through #000;
    color: #000;

}
.task-btn{
    display: flex;
    gap: 10px;
    margin-right: auto;
}
.task-btn button{
    background: rgba(22, 22, 120, 0.5);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color:#fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.task-btn button:hover{
   transform: scale(1.2);
}
.task-btn .add-btn{
    background: aqua;
}
.task-btn .delete-btn{
    background:rgb(191, 226, 89);
}
@media(max-width:600px){
    .container{
        margin: 0 20px;
        padding:0 10px;
    }
    .todo-app{
        padding: 1.5rem;
        gap: 20px;
    }
    #numbers{
        width: 60px;
        height: 40px;
        font-size: 1rem;
    }
    .Input input{
        font-size: 1rem;
    }
    #tasklist li{
        font-size: 1rem;
    }
}
