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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: #1e293b;
}

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

.container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #0f172a;
}

.formulario {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.formulario input[type="text"],
.formulario input[type="datetime-local"],
.formulario select {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.formulario button {
    padding: 10px 16px;
    font-size: 16px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.formulario button:hover {
    background-color: #2563eb;
}

.filtros {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filtros button {
    flex: 1;
    margin: 0 5px;
    padding: 8px;
    font-size: 14px;
    background-color: #e2e8f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filtros button:hover {
    background-color: #cbd5e1;
}

ul#lista-tarefas {
    list-style: none;
}

ul#lista-tarefas li {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
    animation: fadeIn 0.3s ease forwards;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

ul#lista-tarefas li:hover {
    background-color: #e2e8f0;
    transform: scale(1.01);
}

.prioridade-alta {
    border-left: 6px solid #ef4444;
}

.prioridade-normal {
    border-left: 6px solid #3b82f6;
}

.prioridade-baixa {
    border-left: 6px solid #10b981;
}

.concluida {
    text-decoration: line-through;
    opacity: 0.6;
}

footer {
    margin-top: 30px;
    font-size: 13px;
    color: #64748b;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 600px) {
    .formulario {
        flex-direction: column;
    }

    .filtros {
        flex-direction: column;
        gap: 10px;
    }

    .filtros button {
        width: 100%;
    }

    .formulario input[type="text"],
    .formulario input[type="datetime-local"],
    .formulario select,
    .formulario button {
        width: 100%;
    }

    .container {
        padding: 20px;
    }
}

#btn-resetar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f87171;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 999;
}

#btn-resetar:hover {
    opacity: 1;
    transform: scale(1.1);
}

.limpeza-opcoes {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.limpeza-opcoes button {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background-color: #f1f5f9;
    cursor: pointer;
    transition: background 0.2s ease;
}

.limpeza-opcoes button:hover {
    background-color: #e2e8f0;
}