@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #fdf6f0, #f8e8e0);
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 420px;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.inputContainer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#inputTask {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 65%;
    font-size: 16px;
    outline: none;
    transition: 0.2s;
}

#inputTask:focus {
    border-color: #00c6ff;
}

#addTaskButton {
    padding: 10px 16px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

#addTaskButton:hover {
    background: linear-gradient(135deg, #0072ff, #005bb5);
}

#toDoList {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

#toDoList li {
    background-color: #f0f0f0;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    transition: 0.3s;
}

#toDoList li.completed {
    background-color: #d1ffd6;
    color: #999;
}
#toDoList li.completed>span {
    background-color: #d1ffd6;
    text-decoration: line-through;
    color: #999;
}

#toDoList li button {
    background-color: #ff4d4d;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

#toDoList li button:hover {
    background-color: #d63636;
}


/* Responsive Design */
@media (max-width: 500px) {
    .container {
        padding: 15px;
    }

    .inputContainer {
        flex-direction: column;
    }

    #inputTask,
    #addTaskButton {
        width: 100%;
    }

    #toDoList li {
        flex-direction: column;
        align-items: flex-start;
    }

    #toDoList li button {
        margin-left: 0;
        margin-top: 7px;
    }
}