/* Written by Gemini CLI */
/* This file is licensed under the MIT License. See the LICENSE file for details. */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}

#todo-form {
    display: flex;
    margin-bottom: 1.5rem;
}

#todo-input {
    flex-grow: 1;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
}

#todo-input:focus {
    outline: none;
    border-color: #007bff;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 0.5rem;
    transition: background-color 0.2s;
}

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

#todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

li:last-child {
    border-bottom: none;
}

li span {
    flex-grow: 1;
    cursor: pointer;
}

li.completed span {
    text-decoration: line-through;
    color: #aaa;
}

.delete-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}