@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --primary: #0984e3;
    --primary-hover: #74b9ff;
    --urgencia-baixa: #00b894;
    --urgencia-media: #fdcb6e;
    --urgencia-alta: #d63031;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    min-height: 100vh;
}

.login-body { align-items: center; }

.container {
    background: var(--card-bg);
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 2rem;
    animation: slideUp 0.5s ease-out;
}

/* Header Logado */
.header-logado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #dfe6e9;
    padding-bottom: 1rem;
}

.header-logado h1 { font-size: 1.5rem; color: var(--primary); margin-bottom: 5px; }
.saudacao { color: var(--text-muted); font-size: 0.9rem; }

.btn-sair {
    background: #dfe6e9;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}
.btn-sair:hover { background: #ff7675; color: white; }

/* Auth / Login */
.auth-container h1 { text-align: center; margin-bottom: 2rem; color: var(--primary); }
.auth-forms { display: flex; flex-direction: column; gap: 1.5rem; }
.form-box h2 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-muted); }
.form-box input {
    width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #dfe6e9;
    border-radius: 8px; font-size: 1rem; outline: none;
}
.form-box input:focus { border-color: var(--primary); }
.divider { text-align: center; font-weight: bold; color: #b2bec3; position: relative; }
.w-100 { width: 100%; justify-content: center; }

.msg { padding: 10px; border-radius: 8px; margin-bottom: 1rem; text-align: center; font-size: 0.9rem; }
.msg.erro { background: #ffeaa7; color: #d63031; }
.msg.sucesso { background: #55efc4; color: #00b894; }

/* Restante dos estilos originais */
.form-tarefa { margin-bottom: 2rem; }
.input-group { display: flex; gap: 10px; flex-wrap: wrap; }
.input-group input[type="text"] { flex: 1; min-width: 200px; padding: 12px 16px; border: 1px solid #dfe6e9; border-radius: 8px; font-size: 1rem; outline: none; }
.input-group select { padding: 12px; border: 1px solid #dfe6e9; border-radius: 8px; background: #fff; cursor: pointer; outline: none; }
.btn-add { padding: 12px 20px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.btn-add:hover { filter: brightness(1.1); }
.btn-add:active { transform: scale(0.98); }

.lista-tarefas { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tarefa-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid #dfe6e9; border-left: 5px solid transparent; transition: 0.2s; animation: fadeIn 0.4s ease-out forwards; }
.tarefa-item:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.urgencia-baixa { border-left-color: var(--urgencia-baixa); }
.urgencia-media { border-left-color: var(--urgencia-media); }
.urgencia-alta { border-left-color: var(--urgencia-alta); }

.tarefa-info { display: flex; flex-direction: column; gap: 6px; }
.tarefa-titulo { font-size: 1.05rem; font-weight: 500; }
.badge { align-self: flex-start; font-size: 0.75rem; padding: 4px 8px; border-radius: 20px; font-weight: 600; text-transform: uppercase; color: white; }
.badge-baixa { background: var(--urgencia-baixa); }
.badge-media { background: var(--urgencia-media); }
.badge-alta { background: var(--urgencia-alta); }

.tarefa-item.concluida { opacity: 0.6; background: #fdfdfd; border-left-color: #b2bec3; }
.tarefa-item.concluida .tarefa-titulo { text-decoration: line-through; color: var(--text-muted); }
.tarefa-item.concluida .badge { background: #b2bec3; }

.tarefa-acoes { display: flex; gap: 8px; }
.btn-icon { width: 36px; height: 36px; display: flex; justify-content: center; align-items: center; border-radius: 50%; text-decoration: none; color: white; transition: 0.2s; }
.btn-icon:hover { transform: scale(1.1); opacity: 0.9; }
.btn-concluir { background: var(--urgencia-baixa); }
.btn-deletar { background: var(--urgencia-alta); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; color: #dfe6e9; }

@media (max-width: 480px) {
    .input-group { flex-direction: column; }
    .input-group input[type="text"], .input-group select, .btn-add { width: 100%; }
    .tarefa-item { flex-direction: column; align-items: flex-start; gap: 12px; }
    .tarefa-acoes { align-self: flex-end; }
}

@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }