*{
    margin : 0;
    padding : 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html,body {
    height: auto;
    width: 100%;
    overflow-x: hidden;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 0;
    background: none;
}

body::before{
    content: "";
    position: fixed;
    inset: 0;
    background: url("images/back-image2.jpg") center/cover no-repeat;
    z-index: -1;
}

.container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}

.todo-task{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    gap:30px;
    border-radius: 20px;
    box-shadow: 0 0 100px rgba(0,0,0,0.5);
    border: 3px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
}

.todo-task h1{
    font-size: 2rem;
}

.input-area{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.input-area input{
    flex: 1;
    padding: 10px 17px;
    font-size: 1.1rem;
    border: none;
    outline: none;
    border-radius: 22px;
    background: rgba(255,194,209,0.3);
    color: #000050;
    box-shadow: 0 0 100px rgba(0,0,0,0.5);
}

.input-area button{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    padding: 8px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #0000008d;
    background: rgba(255,194,209,0.3);
    border: 2px solid rgba(255,255,255,0.18);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 100px rgba(0,0,0,0.5);
}

.input-area button:hover {
    transform: scale(1.1);
    background: #dfdcf5;
}

.empty-img{
    height: 200px;
    width: 200px;
    background-image: url("images/no-task.png");
    background-size: cover;
}

.list-container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#task-list{
    width: 100%;
}

#task-list li{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,194,209,0.3);
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 30px;
    font-size: 1.2rem;
    position: relative;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 0 100px rgba(0,0,0,0.2);
}

#task-list li:hover {
    box-shadow: 0 0 1opx rgba(0,0,0,0.1);
}

#task-list li .checkbox{
    min-width: 20px;
    height: 20px;
    border: 2px solid rgba(255,194,209,0.3);
    background: transparent;
    appearance: none;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#task-list li .checkbox:checked{
    background: darkred;
    transform: 1.1rem;
}

#task-list li .checkbox:checked::before{
    content: "\2713";
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: 1.1rem;
    font-size: 0.9rem;
}

#task-list li span {
    flex: 1;
    margin-left: 10px;
    word-wrap: break-word;
}

#task-list li.completed span{
    text-decoration: 2px line-through #00000086;
    color: #0000008b;
}

.task-buttons{
    display: flex;
    gap: 10px;
    margin-right: auto;
}

.task-buttons button{
    background: rgba(255,194,209,0.3);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: #000;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.task-buttons button:hover{
    transform: scale(1.2);
}

.task-buttons .dlt-btn{
    background: #c9b7fe;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.stat-container{
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.details{
    width: 100%;
}

.details h3{
    color: #000;
}

.progress-bar{
    width: 100%;
    height: 7px;
    background: rgba(255,194,209,0.3);
    border-radius: 20px;
    position: relative;
    margin-top: 15px;
}

.progress{
    width: 0%;
    height: 100%;
    background: rgba(218, 18, 18, 0.688);
    border-radius: 20px;
    transition: width 0.3s ease;
}

#numbers{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(218, 18, 18, 0.688);
    border: 2px solid rgba(255,194,209,0.3);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.5rem;
}

@media (max-width: 600px) {
    .container {
        margin: 0 20px;
        padding: 0 10px;
    }

    .todo-task{
        padding: 1.5rem;
        gap: 20px;
        font-size: 1rem;
    }

    .input-area input{
        font-size: 1rem;
    }

    #task-list li {
        font-size: 1 rem;
    }
}