/* ==========================================================
   PAINEL EXTRA — Meu Raio-X / Guia de Redação / Fórmulas /
   Anotações (tela inicial, some quando entra numa matéria)
========================================================== */

.painel-extra {
  max-width: 900px;
  margin: 50px auto 20px;
  padding: 20px;
  border-radius: 15px;
  background-color: #1e293b;
  color: white;
}

.painel-colunas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.painel-coluna {
  flex: 1;
  min-width: 220px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 15px;
  padding: 14px;
  cursor: pointer;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.painel-coluna:hover {
  background-color: #0d38afe0;
  border-color: #22c55e;
  transform: translateY(-2px);
}

.painel-coluna h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  text-align: center;
}

.painel-conteudo {
  font-size: 0.85rem;
  color: #cbd5e1;
  max-height: 220px;
  overflow-y: auto;
}

/* ---------- Anotações ---------- */

.anotacoes-toggle {
  margin-top: 16px;
  padding: 8px;
  text-align: center;
  color: #94a3b8;
  cursor: pointer;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.anotacoes-area {
  margin-top: 10px;
}

.anotacoes-area textarea {
  width: 100%;
  background-color: rgba(255,255,255,0.05);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 15px;
  padding: 10px;
  font-family: inherit;
  resize: vertical;
}

.anotacoes-acoes {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.anotacoes-acoes button {
  background-color: rgba(30, 58, 95, 0.6);
  border: 2px solid #22c55e;
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.8rem;
}

.anotacoes-acoes button:hover {
  background-color: #0d38afe0;
  border-color: #16a34a;
}

.anotacoes-aviso {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
}

/* ---------- Modais (Guia de Redação / Fórmulas) ---------- */

.modal-painel-extra {
  position: fixed;
  inset: 0;
  z-index: 220;
  overflow-y: auto;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  background: rgba(0, 0, 0, 0.6);
}

.modal-painel-extra.aberto {
  opacity: 1;
  visibility: visible;
}

.modal-painel-conteudo {
  max-width: 700px;
  margin: 0 auto;
  background-color: #1e293b;
  color: white;
  border-radius: 15px;
  padding: 30px;
  position: relative;
}

.modal-painel-fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
}

.painel-em-breve {
  color: #94a3b8;
  text-align: center;
  padding: 30px 0;
}

.guia-secao-titulo {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: white;
}

.guia-secao-titulo:first-child {
  margin-top: 0;
}

.guia-competencia {
  margin-bottom: 12px;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.guia-competencia strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: #22c55e;
}

.guia-competencia p {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin: 0;
}

.guia-lista-zero,
.guia-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guia-lista-zero li {
  font-size: 0.8rem;
  color: #cbd5e1;
  padding: 6px 10px;
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  border-radius: 15px;
}

.guia-checklist li {
  font-size: 0.8rem;
  color: #cbd5e1;
  padding: 6px 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
}

.formulas-abas {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.formulas-aba {
  background: transparent;
  border: 1px solid #64748b;
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
}

.formulas-aba.ativa {
  background-color: rgba(30, 58, 95, 0.6);
  border-color: #22c55e;
  color: white;
}

.formula-item {
  margin-bottom: 10px;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
}

.formula-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: #22c55e;
}

.formula-item p {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin: 0;
}

.como-funciona-texto {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.5;
}

