/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.todo-container {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #333333;
    font-weight: bold;
}

#task-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

#add-task-btn {
    width: 100%;
    padding: 12px 0;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#add-task-btn:hover {
    background-color: #0056b3;
}

#task-list {
    list-style: none;
    margin-top: 20px;
}

.task-item {
    background: #f9f9f9;
    padding: 10px 15px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.task-item:hover {
    background: #f1f1f1;
}

.task-item span {
    flex: 1;
    font-size: 1rem;
    color: #333;
    margin-right: 10px;
}

.task-item.completed span {
    text-decoration: line-through;
    color: #999;
}

.complete-btn,
.delete-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #fff;
    transition: background-color 0.3s;
}

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

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

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

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