/* ===================================================
   ESTILO — REFORMA TRIBUTÁRIA TGA
=================================================== */

:root {
  --bg: #020617;
  --card: rgba(2,6,23,.75);
  --border: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #38bdf8;
  --success: #22c55e;
}

/* Reset básico */
* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  padding: 24px;
}

.container {
  max-width: 1100px;
  margin: auto;
}

/* ===================================================
   CABEÇALHO
=================================================== */
.header {
  margin-bottom: 32px;
}

.badge {
  background: rgba(56,189,248,.15);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* ===================================================
   SEÇÕES
=================================================== */
.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* selo "Obrigatório" etc */
.section-title span {
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.7rem;
  color: var(--primary);
}

/* ===================================================
   TEXTO
=================================================== */
p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

ul {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===================================================
   LINKS
=================================================== */
.links a {
  color: var(--primary);
  margin-right: 12px;
  text-decoration: none;
  font-size: 0.85rem;
}

.links a:hover {
  text-decoration: underline;
}

/* ===================================================
   CÓDIGO / SQL / XML
=================================================== */
.code-box {
  position: relative;
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
}

pre {
  margin: 0;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* XML mais fiel visualmente */
.code-box.xml pre {
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre;
}

/* ===================================================
   BOTÃO COPIAR
=================================================== */
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #020617;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ===================================================
   TOAST
=================================================== */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #020617;
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  opacity: 0;
  transition: .3s;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
}

.toast.success {
  border-left: 4px solid var(--success);
}

/* ===================================================
   IMAGENS DO TUTORIAL (PRÉ-VISUALIZAÇÃO)
=================================================== */
.img-preview {
  max-width: 720px;
  width: 100%;
  display: block;
  margin: 16px auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.img-preview:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* ===================================================
   OVERLAY / LIGHTBOX (IMAGEM EM SEGUNDO PLANO)
=================================================== */
.image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}

.image-overlay.active {
  display: flex;
}

.image-overlay img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* Botão fechar */
.image-overlay .close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 26px;
  color: var(--text);
  cursor: pointer;
  opacity: 0.8;
}

.image-overlay .close:hover {
  opacity: 1;
}


/* ===================================================
   FOOTER — TGAmeAjuda
=================================================== */
.footer {
  margin-top: 32px;
  padding: 16px 10px;

  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);

  border-top: 1px solid var(--border);
  opacity: 0.85;
}

.footer:hover {
  opacity: 1;
}

/* ==================================================
   MODAL DE IMAGEM — VISUALIZAÇÃO EM SEGUNDO PLANO
=================================================== */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;

  justify-content: center;
  align-items: center;
}

.img-modal.show {
  display: flex;
}

.img-modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.img-close {
  position: absolute;
  top: 20px;
  right: 30px;

  font-size: 28px;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
}

.img-close:hover {
  opacity: 1;
}


.alert-text {
  color: #ef4444;        /* vermelho alerta */
  font-weight: 600;
}
