body {
    margin: 0;
    font-family: Arial;
    background: #222;
    color: #fff;
    transition: 0.3s;
}

body.light {
    background: #f2f2f2;
    color: #222;
}

.container {
    width: 450px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 12px;
    background: #333;
}

body.light .container {
    background: #fff;
}

h1 {
    text-align: center;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#taskInput {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: none;
}

button {
    cursor: pointer;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    background: #5c5cff;
    color: #fff;
    font-weight: bold;
}

button:hover {
    opacity: 0.8;
}

#filter {
    padding: 10px;
    border-radius: 6px;
}

.task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #444;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    transform: translateY(10px);
    opacity: 0;
    animation: slideIn 0.2s forwards;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.task.done {
    text-decoration: line-through;
    opacity: 0.6;
}

.edit {
    flex: 1;
    outline: none;
}

.icons {
    display: flex;
    gap: 10px;
}

/* BOTÃO DE EXCLUIR — atualizado pra ficar bonito */
.btnDelete {
    background: #ff4747;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btnDelete i {
    color: white;
    font-size: 16px;
}

.btnDelete:hover {
    background: #ff2e2e;
}

body.light .btnDelete {
    background: #ff6b6b;
}

body.light .btnDelete:hover {
    background: #ff4a4a;
}

/* Botão de concluir */
.btnDone {
    background: #5cff5c;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btnDone i {
    color: #000;
    font-size: 16px;
}

.btnDone:hover {
    background: #38e038;
}
