body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#taskInput {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#addButton {
    padding: 10px 15px;
    border: none;
    background-color: #5cb85c;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#addButton:hover {
    background-color: #4cae4c;
}

#taskList {
    list-style: none;
    padding: 0;
}

#taskList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 5px solid #5cb85c;
    transition: all 0.3s ease;
}

#taskList li.completed {
    text-decoration: line-through;
    color: #888;
    border-left: 5px solid #ccc;
    opacity: 0.7;
}

#taskList li span {
    flex-grow: 1;
    cursor: pointer;
}

#taskList li .actions button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    font-size: 1.2em;
    color: #e74c3c;
    transition: color 0.3s ease;
}

#taskList li .actions .complete-btn {
    color: #2ecc71;
}

#taskList li .actions button:hover {
    color: #c0392b;
}

#taskList li .actions .complete-btn:hover {
    color: #27ae60;
}