/* ====== Base (seu padrão) ====== */
:root{
  --rosa: #f94dba;
  --rosa-claro: #ffdbee;
  --preto: #111;
  --cinza: #666;
  --borda: #e9e9ee;
  --bg: #fff;
  --maxw: 1120px;
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: var(--preto);
  background: var(--bg);
}

/* ====== NAV ====== */
.top-nav{
  display:flex;
  gap:16px;
  padding:12px 16px;
  border-bottom:1px solid var(--borda);
  position:sticky;
  top:0;
  background:#fff;
  z-index:10;
}
.top-nav a{
  text-decoration:none;
  padding:8px 10px;
  border-radius:8px;
  color:var(--preto);
  font-weight:600;
}
.top-nav a:hover{ background: var(--rosa-claro); }
.top-nav a.ativo{ background: var(--rosa); color:#fff; }

.btnTopComments{
  margin-left:auto;
  background: var(--rosa-claro);
  color:#111;
  border:1px solid #f0aef0;
  border-radius:10px;
  padding:8px 12px;
  font-weight:800;
  cursor:pointer;
}
.btnTopComments:hover,
.btnTopComments[aria-pressed="true"]{
  background: var(--rosa);
  color:#fff;
  border-color: var(--rosa);
}

/* ====== Header ====== */
.page-header{
  max-width: var(--maxw);
  margin: 10px auto 0;
  padding: 0 16px;
  text-align:center;
}
#titulo-prova{
  color: var(--rosa);
  font-weight: 900;
  margin: 10px 0 8px;
}

/* ====== Bolinhas ====== */
.botoes-questoes{
  max-width: var(--maxw);
  margin: 8px auto 4px;
  padding: 6px 16px 2px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px;
}
.btn-ir{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 10px;
  border-radius:999px;
  background:#f7d4f7;
  color:#111;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  border:1px solid #f0aef0;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn-ir:hover{
  background: var(--rosa);
  color:#fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

/* ====== Conteúdo ====== */
#prova{
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px 40px;
}

/* ====== Questões ====== */
.q{
  border: 1px solid var(--rosa-claro);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
  background: #fff;
  scroll-margin-top: 140px;
}
.q h3{ margin:0 0 10px; font-size:1.05rem; }

.opts{
  display:grid;
  gap:8px;
  margin-bottom:10px;
}
.opts label{
  display:grid;
  grid-template-columns: 24px 1fr;
  align-items:start;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--borda);
  border-radius:10px;
  cursor:pointer;
}
.opts input[type="radio"]{ margin-top:2px; }

/* feedback (seu padrão) */
.opts label.selecionada{ box-shadow: inset 0 0 0 2px #bbb; }
.opts label.ok{ box-shadow: inset 0 0 0 2px #21a866; background: rgba(33,168,102,.08); }
.opts label.erro{ box-shadow: inset 0 0 0 2px #e64848; background: rgba(230,72,72,.08); }

.comment{ display:none; margin-top:10px; border-top:1px dashed var(--borda); padding-top:8px; }
.comment.show{ display:block; }

/* ====== Barra de botões ====== */
.bar{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }

.btn-ok, .btn-cmt, .btn-clear, .btn-note{
  border:none;
  border-radius:10px;
  padding:10px 14px;
  font-weight:800;
  cursor:pointer;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}

.btn-ok{ background: #e9fff3; }
.btn-ok:hover{ background:#bff1d3; }

.btn-cmt{ background: var(--rosa-claro); }
.btn-cmt:hover{ background: var(--rosa); color:#fff; }
.btn-cmt:disabled{ opacity:.55; cursor:not-allowed; }

.btn-clear{ background:#f4f4f7; }
.btn-clear:hover{ background:#e8e8ee; }

.btn-note{
  background:#fff7cc;
}
.btn-note:hover{
  background:#ffe98a;
}

/* botão voltar ao topo (seu padrão) */
.btn-voltar{
  display:inline-block;
  margin-bottom:12px;
  padding:6px 12px;
  background-color:#e97ac4;
  color:#fff;
  font-weight:800;
  border-radius:6px;
  text-decoration:none;
  font-size:14px;
}

/* ====== Ações do reverso ====== */
.reverso-actions{
  display:flex;
  justify-content:center;
  margin: 10px 0 16px;
}
.btn-revisao{
  display:inline-block;
  background: var(--rosa);
  color:#fff;
  text-decoration:none;
  padding:10px 14px;
  border-radius:12px;
  font-weight:900;
}
.btn-revisao:hover{ filter: brightness(.95); }

/* ====== FABs ====== */
.fab-topo, .fab-fim{
  position: fixed;
  bottom: 18px;
  width: 46px; height: 46px;
  border-radius: 9999px;
  border: none;
  background: var(--rosa);
  color:#fff;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(237, 98, 165, 0.35);
  cursor: pointer;
  z-index: 99999;
}
.fab-topo{ right: 18px; }
.fab-fim{ right: 70px; }
.fab-topo:hover, .fab-fim:hover{ filter: brightness(.95); }

/* ====== MODAL “post-it” ====== */
.note-modal{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.35);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 100000;
  padding: 18px;
}
.note-modal.show{ display:flex; }

.note-card{
  width:min(560px, 100%);
  background:#fffbe7;
  border: 1px solid #f2e39a;
  border-radius:16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  overflow:hidden;
}

.note-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  background:#fff1a8;
  border-bottom: 1px solid #f2e39a;
}
.note-close{
  border:none;
  background: transparent;
  font-size: 18px;
  cursor:pointer;
  font-weight: 900;
}
.note-meta{
  padding: 10px 14px 0;
  font-weight: 800;
  color:#5a4b00;
}

#noteText{
  width: 100%;
  min-height: 220px;
  border:none;
  outline:none;
  background: transparent;
  padding: 12px 14px 14px;
  resize: vertical;
  font-size: 15px;
}

.note-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  padding: 12px 14px 14px;
  border-top: 1px solid #f2e39a;
  background: #fff7cc;
}
.note-btn{
  border:none;
  border-radius:12px;
  padding:10px 12px;
  font-weight: 900;
  cursor:pointer;
  background:#fff;
}
.note-btn.primary{
  background: var(--rosa);
  color:#fff;
}
.note-btn:hover{ filter: brightness(.97); }
/* ===== Abas (Dias) ===== */
.tabs{
  max-width: var(--maxw);
  margin: 10px auto 0;
  padding: 0 16px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
}

.tab{
  border:1px solid #f0aef0;
  background: #f7d4f7;
  color:#111;
  font-weight:900;
  border-radius: 999px;
  padding: 8px 14px;
  cursor:pointer;
  transition: .15s ease;
}

.tab:hover{
  background: var(--rosa);
  color:#fff;
  transform: translateY(-1px);
}

.tab.ativo{
  background: var(--rosa);
  color:#fff;
  border-color: var(--rosa);
}

.tabpane{ display:none; }
.tabpane.show{ display:block; }

.dia-title{
  text-align:center;
  color: var(--rosa);
  font-weight: 1000;
  margin: 14px 0 10px;
}
.tabs{
  display:flex;
  gap:6px;
  padding:10px 14px;
  border-bottom:2px solid #f0c6e8;
  background:#fff;
  flex-wrap:wrap;
  align-items:center;
}

.tab{
  padding:8px 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  font-size:14px;
  color:#333;
  background:#f7d4f7;
  border:1px solid #f0aef0;
  transition:.15s ease;
  display:inline-flex;
  align-items:center;
}

.tab:hover{
  background:#f94dba;
  color:#fff;
  transform:translateY(-1px);
}

.tab.ativo{
  background:#f94dba;
  color:#fff;
  border-color:#f94dba;
}

.tab.especial{
  background:#ffe9a8;
  border-color:#f3d26c;
}

.tab-spacer{ flex:1; }

.titulo-dia{
  text-align:center;
  color:#f94dba;
  font-weight:1000;
  margin: 14px 0 10px;
}
/* ===== POST-IT DE ANOTAÇÃO ===== */
.nota-flutuante {
  position: fixed;
  right: 20px;
  bottom: 100px;
  width: 260px;
  background: #fff3a0;
  border: 2px solid #f1d36b;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 9999;
}

.nota-flutuante textarea {
  width: 100%;
  height: 120px;
  resize: none;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
}

.nota-flutuante .nota-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 6px;
}

.nota-flutuante button {
  margin-top: 6px;
}

/* permite arrastar sem selecionar texto */
#floatingNoteTitle {
  cursor: move;
  user-select: none;
}


/* ====== Correções/adições Treino Reverso (V3) ====== */

/* Comentários: padrão oculto; aparecem por questão ou global */
.q.show-comment .comment{ display:block; }
html.show-all-comments .comment{ display:block !important; }

/* Não pintar enunciado quando responder (classes ok/err no container não serão usadas) */
.q.ok, .q.err{ border-color: var(--rosa-claro); }

/* Perfil (usuários) */
.perfis{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.perfil-btn{
  border:1px solid var(--borda);
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  cursor:pointer;
  background:#fff;
}
.perfil-btn.active{ outline: 3px solid rgba(0,0,0,.08); }
.perfil-valzinha{ background:#fff7cc; border-color:#f2e39a; }
.perfil-gege{ background:#e9fff3; border-color:#bff1d3; }
.perfil-marcianita{ background:#ffe0f3; border-color:#f0aef0; }

/* Revisão */
.rev-top-actions{
  display:flex;
  justify-content:center;
  margin: 10px 0 18px;
}

.rev-reset{
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  background: #ff4fa3;
  color: #fff;
}

.rev-reset:hover{
  filter: brightness(.95);
}

#lista-revisao{ max-width: 900px; margin: 18px auto; padding: 0 20px 40px; }
.rev-item{
  background:#fffbe7;
  border:1px solid #f2e39a;
  border-radius:14px;
  padding:12px 14px;
  margin:12px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.rev-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.rev-tit{ font-weight:1000; }
.rev-dia{ color: var(--cinza); font-weight:900; margin-left:6px; }
.st-ok{ color:#21a866; }
.st-err{ color:#e64848; }
.st-none{ color:#8a8a8a; }

.rev-actions{ display:flex; gap:10px; align-items:center; }
.rev-go{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:12px;
  background:#e9fff3;
  border:1px solid #bff1d3;
  font-weight:1000;
  text-decoration:none;
  color:#111;
}
.rev-go:hover{ filter: brightness(.97); }
.rev-note{
  border:none;
  border-radius:12px;
  padding:8px 12px;
  font-weight:1000;
  cursor:pointer;
  background:#fff7cc;
}
.rev-note:hover{ background:#ffe98a; }

.rev-note-box{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px dashed #f2e39a;
  min-height: 18px;
}

.rev-vazio{
  background:#fff;
  border:1px dashed var(--borda);
  border-radius:14px;
  padding:16px;
  color:var(--cinza);
  font-weight:800;
}
.dia7-origem{
  margin: 10px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 200, 0, 0.15);
}

.dia7-intro hr{
  margin: 14px 0;
}
/* Dia 7: ocultar/mostrar */
.dia7-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin: 10px 0;
}

.dia7-topbar .dia7-actions{
  display:flex;
  gap:8px;
}

.dia7-btn-mini{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:10px;
  padding:6px 10px;
  cursor:pointer;
  font-weight:600;
}

.dia7-oculta .dia7-conteudo{
  display:none;
}

.dia7-oculta{
  opacity:0.95;
}
@media print {
  body { background: #fff; }
}
.rev-del-note{
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
  color: #b13a3a;
}

.rev-del-note:hover{
  background: #ffecec;
}
.semana-badge{
  text-align: center;
  font-weight: 1000;
  letter-spacing: .08em;
  margin: 14px 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 200, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
/* Post-it arrastável */
/*.note-top {
  cursor: grab;
  user-select: none;
}

.note-card {
  position: fixed;
  top: 120px;
  right: 30px;
}
*/
/* ===== POST-IT ARRASTÁVEL (OFICIAL) ===== */

#floatingNote {
  position: fixed;
  right: 20px;
  bottom: 100px;
  width: 260px;
  background: #fff3a0;
  border: 2px solid #f1d36b;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 9999;
}

/* barra de título = área de arrastar */
#floatingNoteTitle {
  cursor: grab;
  user-select: none;
  font-weight: 600;
}

/* efeito ao arrastar */
#floatingNoteTitle:active {
  cursor: grabbing;
}
/* ===== Pomodoro ===== */
.pomodoro{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  margin:10px 0 14px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  background:#fff;
}

.pomo-time{
  font-weight:1000;
  font-size:18px;
  letter-spacing:0.5px;
  padding:6px 10px;
  border-radius:12px;
  background:rgba(0,0,0,.04);
  min-width:88px;
  text-align:center;
}

.pomo-actions{ display:flex; gap:8px; }

.pomo-btn{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:12px;
  padding:6px 10px;
  cursor:pointer;
  font-weight:900;
}
.pomo-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.pomo-mini{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  color:rgba(0,0,0,.75);
}
.pomo-mini select{
  margin-left:6px;
  border-radius:10px;
  padding:4px 8px;
  border:1px solid rgba(0,0,0,.12);
}
.pomo-mode{
  font-weight:1000;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
}
@media print{
  .pomodoro{ display:none !important; }
}
