* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f0f2f5;
}

li {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
}

.todo-container {
    width: 500px;
    height: 500px;
    background-color: whitesmoke;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 30px 20px 30px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

/* Cabeçalho com título */
.todo-container h1 {
    margin-bottom: 20px;
    color: #333;
}

/* Input para nova tarefa */
.task {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    outline: none;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.task:focus {
    border-color: #007bff;
}

/* Botões */
.add-btn, .remove-btn {
    padding: 12px 25px;
    margin: 5px;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: white;
    font-weight: bold;
    user-select: none;
}

.add-btn {
    background-color: #28a745;
}

.add-btn:hover {
    background-color: #218838;
}

.remove-btn {
    background-color: #dc3545;
}

.remove-btn:hover {
    background-color: #c82333;
}

/* Lista de tarefas */
.todo-list {
    width: 100%;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scroll estilizado (opcional) */
.todo-list::-webkit-scrollbar {
    width: 6px;
}

.todo-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 3px;
}

/* Checkbox */
.check-box {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Tarefa marcada (checkbox checked) */
li input[type="checkbox"]:checked + text,
li input[type="checkbox"]:checked ~ span {
    text-decoration: line-through;
    color: #999;
}
