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

:root{
    --primary:#4CAF50;
    --secondary:#FF9800;
    --bg:#F9FAFB;
    --card:#FFFFFF;
    --text:#212529;
    --text-muted:#6C757D;
}

.container{
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f9fafb, #f1f3f6);
    padding: 0.7rem;
}

.todo-box{
    width: 100%;
    max-width: 540px;
    background-color: var(--card);
    margin: 100px auto 20px;
    padding: 40px 30px 70px;
    border-radius: 20px;
    /* border: 2px solid black; */
    /* box-shadow: 4px 8px 8px var(--text); */
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    /* text-align: center; */
    animation: initAnim 1s ease-in 0s;
}

@keyframes initAnim {
    0%{
        opacity: 0;
        transform: translateY(-120px);
    }  
    100%{
        opacity: 1;
        transform: translateY(0);
    } 
}
.todo-header{
    color: var(--text);
    text-decoration: wavy var(--secondary) underline;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.todo-img{
    width: 40px;
    transition: all 1s ease-in;
}

.todo-img:hover{
    transform: rotate(360deg);
}

/* Input Container */

.input-container{
    display: flex;
    align-items: center;
    /* justify-content: center; */
    justify-content: space-between;
    background: #edeef0;
    border-radius: 30px;
    padding-left: 1.2rem;
    margin-bottom: 1.2rem;
}

.input-box{
    flex: 1;
    border: none;
    outline: none;
    background: transparent ;
    padding: 1rem;
    font-size: 1rem;
    font-family: 500;
}

.input-container button{
    border: none;
    outline: none;
    padding: 1.1rem;
    border-radius: 30px;
    background-color: #007bff;
    cursor: pointer;
    transition: all 0.3s;
}

.add-icon{
    font-size: 1.2rem;
}

button:hover{
    background-color: #0056b3;
}

.list-container li{
    list-style: none;
    font-size: 1rem;
    padding: 15px 8px 12px 50px;
    user-select: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeInTask 0.3s ease;
    
}

.list-container li:hover{
    transform: translateX(5px) scale(1.02);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.list-container li::before{
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-image: url(assets/radio.png);
    background-position: center;
    background-size: cover;
    top: 12px;
    left: 8px;
}

.checked{
    color: var(--text-muted);
    text-decoration: line-through;
}

.list-container li.checked::before{
    background-image: url(assets/check.png);
}

/* Delete Button */

li button{
    position: absolute;
    right: 0;
    top: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: transparent;
    /* background-color: #dc3545; */
    transition: all 0.2s ease;
}

li button:hover{
    cursor: pointer;
    background-color: #c82333;
}
li button i{
    font-size: 1rem;
}

@keyframes fadeInTask {
    from{
        opacity: 0;
        transform: translateY(8px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutTask {
    from{
        opacity: 1;
        transform: translateX(0);
    }
    to{
        opacity: 0;
        transform: translateX(50px);
    }
}