body {
    background: #222;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: start;
    padding-top: 50px;
    min-height: 100vh;
    margin: 0;
    color: #fff;
}

.todo-container {
    background: #333;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#task-input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    outline: none;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background: #00c853;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #00b342;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: #444;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li.completed {
    text-decoration: line-through;
    color: #aaa;
}

li button {
    background: #ff5252;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

li button:hover {
    background: #e53935;
}
