:root {
  --bg: #07152a;
  --blue: #1045a1;
  --accent: #e8a020;
  --accent2: #1ec8a0;
  --card-bg: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.09);
  --text: #e8edf5;
  --sub: #7f93ab;
  --pendente: #f0c040;
  --andamento: #e07a20;
  --concluido: #1ec870;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
body::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(rgba(16,69,161,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(16,69,161,0.12) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; z-index: 0; }
.orb { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; opacity: 0.3; }
.orb1 { width: 500px; height: 500px; background: #1045a1; top: -180px; left: -120px; }
.page { position: relative; z-index: 1; max-width: 1300px; margin: 0 auto; padding: 36px 24px; }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-badge { width: 40px; height: 40px; background: var(--blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 14px; color: white; box-shadow: 0 0 20px rgba(16,69,161,0.5); }
.logo-text { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; }
.logo-sub { font-size: 10px; color: var(--sub); margin-top: 2px; }
.btnVoltar { display: flex; align-items: center; gap: 6px; background: var(--card-bg); border: 1px solid var(--border); color: var(--sub); text-decoration: none; padding: 8px 14px; border-radius: 10px; font-size: 13px; transition: .15s; }
.btnVoltar:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.hero { margin-bottom: 28px; }
.hero-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; display: block; }
h1 { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.semanaAtual { font-size: 13px; color: var(--sub); margin-top: 4px; }
/* FORM */
.form-wrap { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin-bottom: 24px; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--sub); }
.form-wrap select, .form-wrap input[type=text] { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text); padding: 9px 12px; border-radius: 10px; font-size: 13px; font-family: 'DM Sans', sans-serif; outline: none; transition: .15s; }
.form-wrap input[type=text] { min-width: 280px; }
.form-wrap select option { background: #0f2040; }
.form-wrap select:focus, .form-wrap input:focus { border-color: var(--blue); background: rgba(16,69,161,0.15); }
.btnAdd { background: var(--blue); color: white; border: none; padding: 10px 20px; border-radius: 10px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer; transition: .15s; white-space: nowrap; }
.btnAdd:hover { background: #1558cc; }
/* RELATÓRIO */
.relatorio-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.rel-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.rel-card .rel-val { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: #fff; }
.rel-card .rel-lbl { font-size: 12px; color: var(--sub); margin-top: 2px; }
.rel-prog { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; grid-column: span 2; }
.prog-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: var(--sub); }
.prog-bar { background: rgba(255,255,255,0.07); border-radius: 999px; height: 10px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--accent2)); transition: width .5s ease; }
/* TABELA */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 8px 0; }
th { background: var(--card-bg); border: 1px solid var(--border); padding: 12px 8px; font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--sub); border-radius: 10px 10px 0 0; text-align: center; }
td { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-top: none; padding: 8px; vertical-align: top; min-width: 150px; min-height: 120px; border-radius: 0 0 10px 10px; }
/* DIA ATUAL */
th.hoje { background: rgba(16,69,161,0.25); border-color: rgba(16,69,161,0.5); color: var(--accent); }
td.hoje { background: rgba(16,69,161,0.08); border-color: rgba(16,69,161,0.3); }
/* TAREFAS */
.tarefa { padding: 8px 10px; border-radius: 10px; margin: 6px 0; font-size: 12px; cursor: pointer; position: relative; }
.tarefa .desc { font-weight: 500; margin-bottom: 6px; line-height: 1.4; }
.pendente { background: rgba(240,192,64,0.15); border: 1px solid rgba(240,192,64,0.35); color: #f0c040; }
.andamento { background: rgba(224,122,32,0.15); border: 1px solid rgba(224,122,32,0.35); color: #e07a20; }
.concluido { background: rgba(30,200,112,0.12); border: 1px solid rgba(30,200,112,0.3); color: var(--concluido); }
.concluido .desc { text-decoration: line-through; opacity: 0.7; }
.status-tag { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 999px; margin-bottom: 5px; font-weight: 600; letter-spacing: 0.5px; }
.pendente .status-tag { background: rgba(240,192,64,0.2); }
.andamento .status-tag { background: rgba(224,122,32,0.2); }
.concluido .status-tag { background: rgba(30,200,112,0.15); }
.acoes { display: flex; gap: 5px; margin-top: 6px; }
.btn-mini { border: none; border-radius: 7px; padding: 3px 8px; font-size: 11px; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: .1s; }
.btn-status { background: rgba(255,255,255,0.1); color: var(--text); }
.btn-status:hover { background: rgba(255,255,255,0.2); }
.btn-del { background: rgba(231,76,60,0.15); color: #e74c3c; }
.btn-del:hover { background: rgba(231,76,60,0.3); }
.btn-edit { background: rgba(255,255,255,0.08); color: var(--sub); }
.btn-edit:hover { background: rgba(255,255,255,0.15); color: var(--text); }
/* ANOTAÇÕES */
.anot-wrap { margin-top: 28px; }
.anot-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.anot-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.anot-card textarea { width: 100%; min-height: 100px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text); padding: 10px 12px; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 13px; resize: vertical; outline: none; transition: .15s; }
.anot-card textarea:focus { border-color: var(--blue); }
.anot-card .btn-salvar { margin-top: 10px; background: var(--blue); color: white; border: none; padding: 9px 18px; border-radius: 10px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 12px; cursor: pointer; transition: .15s; float: right; }
.anot-card .btn-salvar:hover { background: #1558cc; }
.saved-msg { font-size: 12px; color: var(--accent2); opacity: 0; transition: opacity .3s; display: inline-block; margin-top: 12px; }
.saved-msg.show { opacity: 1; }
