@import url('https://fonts.googleapis.com/css2?family=Borel&family=DynaPuff:wght@400..700&family=Funnel+Display:wght@300..800&display=swap');

:root {
    --fondo: #fff;
    --text: #222;
    --accent: #9c88ff;
    --muted: #555;
    --accent-hover: #7e70df;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Funnel Display", sans-serif;
}

body {
    background-color: var(--fondo);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.todo-container {
    background-color: var(--card);
    padding: 30px;
    border-radius: 16px;
    width: 550px;
    box-shadow: 0 10px 30px rgba(128, 0, 128, 0.342);
}

h1 {
    text-align: center;
    color: var(--text);
    margin-bottom: 20px;
    font-size: 40px;
}

form {
    display: flex;
    margin-bottom: 20px;
}

input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 12px 0 0 12px;
    outline: none;
    transition: border 0.3s;
    font-size: 16px;
}

button {
    padding: 12px 20px;
    border: none;
    background-color: var(--accent);
    color: white;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: var(--accent-hover);
}

.filters {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.filters button {
    margin: 0 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background-color: var(--fondo);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s;
}

.filters button.active,
.filters button:hover {
    background-color: var(--accent);
    color: white;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--fondo);
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

li:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.completed {
    text-decoration: line-through;
    color: var(--muted);
}

li span small {
    display: block;
    font-size: 1em;
    color: var(--muted);
}

li div button {
    margin-left: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: black;
    transition: transform 0, 3s background-color 0.3s;
}

li div button:hover {
    transform: scale(1.05);
}

li div button:first-child {
    background-color: greenyellow;
}

li div button:last-child {
    background-color: lightcoral;
}

li div button:first-child:hover {
    background-color: rgba(0, 128, 0, 0.685);
}

li div button:last-child:hover {
    background-color: red;
}