:root {
    --fundo: #0f1115;
    --superficie: #191d24;
    --superficie-clara: #222831;
    --borda: #2c333d;
    --texto: #e8ecf1;
    --texto-suave: #98a2b3;
    --acento: #22c55e;
    --acento-escuro: #16a34a;
    --perigo: #ef4444;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--fundo);
    color: var(--texto);
    line-height: 1.5;
}

.topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: var(--superficie);
    border-bottom: 1px solid var(--borda);
}
.topo-marca { font-weight: 700; }
.topo-usuario { font-size: 0.85rem; color: var(--texto-suave); }
.topo-usuario a { color: var(--texto-suave); }

.abas { display: flex; background: var(--superficie); border-bottom: 1px solid var(--borda); }
.aba {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    color: var(--texto-suave);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
}
.aba-ativa { color: var(--texto); border-bottom-color: var(--acento); }

.container { max-width: 640px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }

h1 { font-size: 1.4rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.1rem; margin: 1.75rem 0 0.75rem; }
.subtitulo { color: var(--texto-suave); margin: 0 0 1.5rem; font-size: 0.9rem; }
.data-hoje { color: var(--texto-suave); font-size: 0.9rem; margin: 0 0 1.25rem; }

/* Checklist */
.lista-tarefas { list-style: none; margin: 0; padding: 0; }
.item-tarefa {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.6rem;
}
.item-tarefa input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--acento); flex-shrink: 0; }
.item-tarefa label { flex: 1; cursor: pointer; }
.item-tarefa.concluida { border-color: var(--acento-escuro); }
.item-tarefa.concluida label { color: var(--texto-suave); text-decoration: line-through; }

/* Histórico */
.cartao-tarefa {
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.9rem;
}
.cartao-tarefa h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.metricas { display: flex; gap: 1.5rem; margin-bottom: 0.8rem; }
.metrica-valor { font-size: 1.3rem; font-weight: 700; display: block; }
.metrica-rotulo { font-size: 0.72rem; color: var(--texto-suave); text-transform: uppercase; letter-spacing: 0.04em; }
.calendario { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; }
.dia { aspect-ratio: 1; border-radius: 3px; background: var(--superficie-clara); }
.dia-feito { background: var(--acento); }
.pausada { opacity: 0.55; }
.etiqueta-pausada { font-size: 0.7rem; color: var(--texto-suave); border: 1px solid var(--borda); border-radius: 999px; padding: 0.1rem 0.5rem; }

/* Formulários e botões */
label { display: block; margin: 0.9rem 0 0.3rem; font-size: 0.85rem; color: var(--texto-suave); }
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 0.7rem;
    background: var(--superficie-clara);
    border: 1px solid var(--borda);
    border-radius: 8px;
    color: var(--texto);
    font-size: 1rem;
}
button {
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--acento);
    color: #06210f;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
button:hover { background: var(--acento-escuro); }
.botao-secundario { width: auto; margin: 0; padding: 0.4rem 0.8rem; font-size: 0.8rem; background: var(--superficie-clara); color: var(--texto); }
.botao-secundario:hover { background: var(--borda); }

.erro { background: rgba(239, 68, 68, 0.12); border: 1px solid var(--perigo); color: #fca5a5; padding: 0.7rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.vazio { color: var(--texto-suave); text-align: center; padding: 2rem 1rem; }

/* Login */
.tela-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.cartao-login { width: 100%; max-width: 360px; background: var(--superficie); border: 1px solid var(--borda); border-radius: 14px; padding: 2rem 1.5rem; }
