@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(200deg, #8b77b8, #b87787); 
    width: 100%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: clamp(22rem, 50vw, 28rem );
    background: #262626;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.heading h1 {
    font-size: clamp(1.6rem , 4vw, 2rem);
    font-weight: bold;
    color: #00ff99;
}

.heading img {
    width: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: .3rem;
}

.main {
    width: clamp(18rem, 40vw, 24rem);
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.search {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: clamp(0.8rem, 2vw, 1rem );
}

#addBtn {
    background: #00ff99;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

#addBtn:hover {
    background: #00cc77;
}

#addBtn i {
    color: #1a1a1a;
    font-size: 1.1rem;
}

#taskList {
    list-style: none;
}

#taskList li {
    background: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.6rem;
    border-radius: 8px;
    transition: 0.2s ease;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

#taskList li:hover {
    background: #3d3d3d;
}

.task-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #00ff99;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.task-checkbox:checked {
    background-color: #00ff99;
    border-color: #00ff99;
    box-shadow: 0 0 6px #00ff99;
}

.task-checkbox:checked::after {
    content: "✔";
    position: absolute;
    top: -2px;
    left: 1px;
    font-size: 12px;
    color: #1a1a1a;
    font-weight: bold;
}


#taskList li span {
    flex: 1;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.completed {
    text-decoration: line-through;
    color: #888;
}

#taskList li button {
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s ease;
}

#taskList li button:hover {
    color: #ff1a1a;
}