/* === Reset e base === */
/* ===== Bootstrap Tooltip mínimo (sem layout global) ===== */
.tooltip {
  z-index: 1080;
  display: block;
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-break: normal;
  word-spacing: normal;
  white-space: normal;
}

.tooltip-inner {
  max-width: 200px;
  padding: 0.25rem 0.5rem;
  color: #fff;
  text-align: center;
  background-color: #000;
  border-radius: 0.25rem;
}

.tooltip-arrow {
  position: absolute;
  display: block;
  width: 0.8rem;
  height: 0.4rem;
}
.tooltip-arrow::before {
  content: "";
  position: absolute;
  border-style: solid;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f0f2f5;
  height: 100vh;
}

/* === Layout principal === */
.container {
  display: flex;
  flex-direction: row; /* garante layout lado a lado */
  width: 100%;
  min-height: 100vh; /* mais seguro para responsividade */
}

/* Wrapper que agrupa tabuleiro e referência */
.jogo-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px; /* ✅ espaço real entre tabuleiro e referência */
  margin-top: 40px;
  flex-wrap: wrap; /* ✅ evita sobreposição em telas menores */
}

/* Container do tabuleiro */
.tabuleiro-container {
  flex-shrink: 0;
  text-align: center;
  width: auto; /* ✅ não ocupa 100% da largura */
}

/* Container da referência */
.referencia-container {
  flex-shrink: 0;
  margin-top: 20px;
  display: flex; /* ✅ garante alinhamento correto */
  justify-content: center;
}

/* Sub-wrapper que agrupa tabuleiro e referência */
.tabuleiro-referencia {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* garante que a referência alinhe pelo topo do tabuleiro */
  gap: 30px; /* espaço entre tabuleiro e referência */
  margin-top: 20px; /* espaço entre botões de nível e o tabuleiro */
  flex-wrap: wrap; /* em telas menores, referência desce abaixo do tabuleiro */
}

/* === Menu lateral === */
.sidebar {
  width: 250px;
  max-width: 250px; /* permite reduzir em telas menores */
  flex-shrink: 0;
  background-color: #1e2a38;
  color: white;
  padding: 20px;
}

.sidebar h2 {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}

.logo-home {
  margin-top: 5px;
  text-align: center;
  opacity: 0.6; /* valor entre 0 e 1 */
}

.logo-home img {
  max-width: 100%; /* ocupa até o limite do container */
  height: auto;
  display: block;
  margin: 0 auto; /* centraliza a logo */
}

.logo-acessibilidade {
  width: 150px;
  height: auto;
  margin-top: 10px; /* dá espaço extra se precisar */
}

.contador-linhas {
  font-size: 0.9rem; /* deixa o número maior */
  font-weight: bold; /* em negrito */
  color: #2563eb; /* azul destaque */
  background: #cbeaff; /* leve fundo azul claro */
  border: 2px solid #2563eb;
  border-radius: 8px;
  padding: 3px 18px;
  display: inline-block;
  margin-top: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: destaque 1s ease-in-out;
}

/* Texto final em azul */
.texto-destaque {
  color: rgb(0, 0, 175);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar button {
  width: 100%;
  padding: 10px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.sidebar button:hover {
  background-color: #e60000;
}

/* === Área de conteúdo === */
.content {
  position: relative;
  flex: 1;
  width: 100%;
  padding: 50px;
  overflow-y: auto;
  background-color: #ffffff;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  z-index: 1;

  height: 100vh; /* ocupa exatamente a altura da tela */
  box-sizing: border-box; /* padding conta dentro da altura/largura */
}

.content::before {
  content: "";
  position: absolute;
  top: 55%;
  left: 45%;
  width: 60%;
  height: 90%;
  transform: translate(-50%, -50%);
  background-image: url("../img/logos/marca_dagua.png");
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

.content h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.content p {
  font-size: 16px;
  margin-bottom: 10px;
  color: #555;
}

/* === Estilos antigos mantidos === */
.form-container {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  text-align: center;
  margin: auto;
}

label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-container button {
  width: 100%;
  padding: 12px;
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.form-container button:hover {
  background-color: #005fa3;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.button-group button {
  white-space: nowrap;
  width: auto;
  flex: 0;
}

/* Instruções */
.instrucoes {
  margin-top: 30px;
  text-align: left;
}

.instrucoes h2 {
  color: #007acc;
  margin-bottom: 10px;
}

.instrucoes ul {
  padding-left: 20px;
}

.instrucoes li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* Slots */
.item-slot {
  border: 2px dashed #3b82f6;
  border-radius: 8px;
  width: 170px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  margin-bottom: 12px;
  transition: border-color 0.3s;
}

#game-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tag-palavra {
  cursor: grab;
  border: 2px solid #ff9800; /* borda laranja */
  border-radius: 8px;
  width: 170px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff9800; /* fundo laranja */
  color: #fff; /* texto branco para contraste */
  margin-bottom: 64px;
  cursor: grab;
  font-weight: 600;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    opacity 0.3s;
  user-select: none;
}

.tag-palavra:hover {
  background-color: #ffb443; /* laranja mais escuro no hover */
}

.tag-palavra:active {
  background-color: #ffa51d; /* laranja ainda mais escuro ao clicar */
  cursor: grabbing;
}

/* Estado desabilitado (quando draggable="false") */
.tag-palavra[draggable="false"] {
  background-color: #ffd699; /* laranja clarinho */
  border-color: #ffd699;
  color: #333; /* texto escuro para contraste */
  cursor: default;
  opacity: 0.7;
}

/* Mensagens rápidas abaixo do HUD */
#mensagem-rapida {
  font-weight: 600;
  color: #444;
  opacity: 0;
  transition: opacity 0.3s;
  min-height: 24px; /* mantém espaço fixo mesmo sem mensagem */
}

#modal-mensagem {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 16px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  z-index: 9999;
  text-align: center;
}

#mensagem-rapida.mostrar {
  opacity: 1;
}

#mensagem-rapida.esconder {
  opacity: 0;
}

.item-slot img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

#coluna-imagens,
#coluna-palavras {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.marca-dagua {
  position: fixed;
  bottom: 20px;
  width: 150px;
  height: 100px;
  background-image: url("../img/logos/marca_dagua.png");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.1;
  pointer-events: none;
  z-index: 99;
}

.marca-dagua.esquerda {
  left: 16px;
}
.marca-dagua.direita {
  right: 10px;
}

.item-slot.correto {
  border-color: green !important;
}
.item-slot.errado {
  border-color: red !important;
}

/* ============================
   ÁREA DO QUEBRA‑CABEÇA
   ============================ */

/* Tabuleiro padrão */
#tabuleiro {
  width: 400px;
  height: 600px;
  margin: 20px auto;
  display: none;
  gap: 1px;
  border: 2px solid #007acc;
  border-radius: 2px;
}

/* Tabuleiro 104 peças */
#tabuleiro104pcs {
  width: 1000px;
  height: 400px;
  margin: 20px auto;
  display: grid;
  gap: 0.2px;
  border: 0.2px solid #007acc;
  border-radius: 4px;

  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(13, 1fr);
}

/* Referência do tabuleiro 104 peças */
.referencia-container.referencia104pcs img {
  max-width: 400px;
  border: 2px solid #007acc;
  border-radius: 6px;
}

/* Tabuleiro 32 peças */
#tabuleiro.tabuleiro-32pcs {
  width: 400px;
  height: 700px;
  margin: 20px auto;
  display: grid;
  gap: 1px;
  border: 2px solid #007acc;
  border-radius: 2px;

  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(8, 1fr);
}

/* Referência do nível 32 */
.referencia-container.referencia32pcs img {
  max-width: 150px;
  border: 2px solid #007acc;
  border-radius: 6px;
}

/* Peças */
.peca {
  width: 105%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid #007acc;
  border-radius: 6px;
  cursor: grab;
}

.peca.dragging {
  opacity: 0.5;
}

/* Wrapper que agrupa tabuleiro e referência */
.jogo-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px; /* ✅ espaço real entre tabuleiro e referência */
  margin-top: 20px;
  flex-wrap: wrap; /* ✅ evita sobreposição em telas menores */
}

/* Container do tabuleiro */
.tabuleiro-container {
  flex-shrink: 0;
  text-align: center;
  width: auto; /* ✅ não ocupa 100% da largura */
}

/* Container da referência */
.referencia-container {
  flex-shrink: 0;
  display: flex; /* ✅ garante alinhamento correto */
  justify-content: center;
  min-width: 200px; /* largura mínima para não ficar espremida */
}

/* Imagem de referência padrão */
.referencia-container img {
  max-width: 200px;
  border: 2px solid #007acc;
  border-radius: 6px;
}

.tabuleiro-referencia {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* referência alinhada pelo topo do tabuleiro */
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap; /* em telas menores a referência desce abaixo */
}

/* Botão voltar */
#voltar {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #007acc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

#voltar:hover {
  background-color: #005f99;
}

/* Card geral */
.quebra-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 20px;
}

/* ================================
   CARDS DE DEMONSTRAÇÃO DE BOTÕES
================================ */

.demo-card {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease; /* efeito suave */
}

.demo-card [vw] {
  position: relative;
  margin-top: 20px;
  width: 100%;
  display: block;
}

.demo-card [vw-plugin-wrapper] {
  background: #f9f9f9;
  min-height: 200px;
  border-radius: 6px;
  overflow: hidden; /* impede que o avatar vaze */
  position: relative;
}

.demo-card .vw-plugin-top-wrapper {
  position: relative !important;
  transform: scale(1); /* reduz o tamanho do avatar */
  transform-origin: top left;
  max-height: 200px; /* limita a altura */
}

.demo-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.demo-header p {
  margin: 5px 0 15px 0;
  color: #666;
  font-size: 14px;
}

.demo-actions {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* espaçamento entre elementos */
  align-items: center;
}

.demo-actions button,
.demo-actions a {
  margin-right: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.demo-actions button:hover,
.demo-actions a:hover {
  transform: scale(1.05); /* leve zoom ao foco/hover */
}

/* Botões de abertura de modais (metade da largura) */
.demo-actions .btn-open-modal {
  width: 50%;
  padding: 8px 12px;
  font-size: 1rem;
  margin: 5px auto;
  display: block;
}

/* Se existir alguma regra impondo 100% nos botões da demo-actions, mantenha-a,
   mas deixe esta variação após ela para sobrescrever sem !important. */

/* ================================
   RETORNO NA MESMA LINHA
================================ */

.demo-retorno {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;

  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-retorno strong {
  margin: 0;
}

.demo-retorno .retorno {
  display: inline-block;
  padding: 0;
  margin: 0;
  color: #333;
  font-weight: bold; /* destaque no retorno */
}

/* ================================
   PAGINAÇÃO
================================ */

.paginacao {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
}

.paginacao span {
  font-weight: bold;
  font-size: 16px;
}

/* ================================
   MODAL REFINADO
================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

#estrelas span {
  font-size: 2.5rem; /* aumenta o tamanho */
  cursor: pointer; /* mãozinha ao passar o mouse */
  color: #ccc; /* cor padrão (cinza claro) */
  transition: color 0.3s; /* transição suave */
}

#estrelas span.selecionada {
  color: gold; /* estrelas selecionadas ficam amarelas */
}

/* Base comum para todas as modais */
.modal-content {
  position: relative;
  background-color: #fff;
  padding: 20px 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Versão compacta (login, cadastro, alerta simples) */
.modal-content.small {
  width: 300px;
  margin: auto;
}

/* Versão fluida (catálogo, confirmação, sucesso, erro) */
.modal-content.large {
  width: 80%;
  max-width: 420px;
  margin: 8% auto;
  border-radius: 10px;
  animation: slideDown 0.3s ease;
}

/* Botões dentro das modais - versão compacta */
.modal-content button {
  margin: 8px 6px 0 6px;
  padding: 6px 10px; /* altura e largura menores */
  font-size: 0.85rem;
  border-radius: 5px;
  transition: transform 0.2s ease;
  width: 120px; /* ajusta ao texto */
  min-width: unset; /* remove largura mínima herdada */
  max-width: 120px; /* limite lateral opcional */
}

.modal-content button:hover {
  transform: scale(1.05);
}

/* Campo de sugestão dentro da modal */
#feedback-extra {
  margin-top: 12px;
}

#feedback-extra label {
  font-size: 0.9rem;
  color: #333;
}

#feedback-extra textarea {
  width: 100%;
  height: 60px;
  margin-top: 6px;
  padding: 6px 8px;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: none; /* impede redimensionamento */
  outline: none;
  transition: border-color 0.2s ease;
}

#feedback-extra textarea:focus {
  border-color: #0078d7; /* azul padrão Microsoft */
}

/* Botão de enviar sugestão dentro da modal */
#feedback-extra button {
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: 5px;
  transition: transform 0.2s ease;
  width: 120px;
  min-width: unset;
  max-width: 120px;
  cursor: pointer;
}

#feedback-extra button:hover {
  transform: scale(1.05);
}

/* ================================
   ESTADO DISABLED DOS BOTÕES
================================ */

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(40%);
}

button:disabled:hover {
  opacity: 0.6;
  filter: grayscale(40%);
}

/* ================================
   BOTÃO RESETAR (NOVO)
================================ */

.resetar {
  background: #777;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.resetar:hover {
  background: #5f5f5f;
}

.resetar:active {
  background: #4a4a4a;
}

.catalogo-botoes button {
  padding: 10px 20px;
  font-size: 16px;
  width: auto;
  display: inline-block;
}

/* Ajuste visual específico para a página de botões */
.catalogo-botoes .form-container {
  max-width: 800px; /* aumenta a largura do container só nesta página */
}

.catalogo-botoes .demo-card {
  width: 100%; /* ocupa toda a largura disponível */
}

.catalogo-botoes .demo-actions {
  display: flex;
  flex-wrap: nowrap; /* mantém os botões na mesma linha */
  gap: 10px;
}

.retorno.sucesso {
  color: green;
  font-weight: bold;
}

.retorno.erro {
  color: red;
  font-weight: bold;
}

/* =============================== */
/* ESTILOS GERAIS PARA TABELAS */
/* =============================== */
/* ======================================= */
/* CONTÊINER DAS TABELAS                   */
/* ======================================= */

.container-tabelas {
  width: 100%;
  max-width: 1300px; /* ajuste como quiser: 1100, 1200, 1400... */
  margin: 0 auto;
  padding: 20px 30px;
  box-sizing: border-box;
}

.doc-container.instrucoes {
  max-width: 1200px; /* ou 1100px, conforme preferir */
  margin: 0 auto; /* centraliza horizontalmente */
  padding: 30px; /* opcional: dá respiro interno */
  box-sizing: border-box; /* garante que padding não estoure a largura */
}

/* Container mais largo apenas nas páginas de requisitos */
body.requisitos .doc-container {
  max-width: 1000px; /* aumenta a largura máxima */
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
  line-height: 1.6;
}

.container-tabelas {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.container-tabelas table {
  width: auto; /* 🔑 NÃO 100% */
  min-width: 720px; /* força scroll */
  border-collapse: collapse;
}

/* Deixa as células mais confortáveis */
.container-tabelas th,
.container-tabelas td {
  padding: 12px 18px;
}

/* Espaçamento moderno entre linhas da tabela */
.container-tabelas table {
  border-spacing: 0 6px;
}

.linha-selecionada {
  background-color: #e6f2ff !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

/* Cabeçalho */
table thead {
  background: #f3f3f3;
}

table thead th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

/* Corpo */
table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #eaeaea;
  color: #444;
}

/* Última linha sem borda */
table tbody tr:last-child td {
  border-bottom: none;
}

/* Hover */
table tbody tr:hover {
  background: #f7faff;
  transition: 0.2s ease;
}

/* =============================== */
/* INPUT DE BUSCA */
/* =============================== */

.input-busca {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  outline: none;
}

.input-busca:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}
/* Campos de Upload */
input.sucesso {
  border: 3px solid green;
}
input.erro {
  border: 3px solid red;
}
/* Campos de seleção (select) */
select.erro {
  border: 3px solid red;
}

select.sucesso {
  border: 3px solid green;
}

input,
select {
  transition: border 0.3s ease;
}

/* =============================== */
/* PAGINAÇÃO EXCLUSIVA DAS TABELAS */
/* =============================== */

.paginacao-tabelas {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.paginacao-tabelas button {
  padding: 8px 14px;
  border: none;
  background: #4a90e2;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

.paginacao-tabelas button:hover {
  background: #357ac8;
}

#pagina-atual {
  font-weight: bold;
  color: #333;
}

/* =============================== */
/* ESTILO PARA ESTADO VAZIO        */
/* =============================== */

.tabela-vazia .estado-vazio {
  background: #f5f5f5;
  border: 2px dashed #ccc;
  border-radius: 6px;
  text-align: center;
  padding: 25px;
  font-size: 15px;
  color: #666;
  font-style: italic;
  transition: 0.2s ease-in-out;
}

.tabela-vazia .estado-vazio:hover {
  background: #fafafa;
  border-color: #999;
  color: #444;
}

/* =============================== */
/* CHECKBOXES (SELEÇÃO DE LINHAS) */
/* =============================== */

.tabela-selecao input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Cabeçalhos clicáveis da tabela de ordenação */
.ordenavel {
  cursor: pointer;
  padding-right: 10px; /* aumenta o espaço entre o texto e as setas */
}

.ordenavel:hover {
  background-color: #e9e9e9;
  transition: 0.2s ease;
}

.tabela-simples tbody tr {
  cursor: pointer;
}

/* =============================== */
/* BOTÕES DE AÇÃO DENTRO DA TABELA */
/* =============================== */

.btn-acao {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-right: 6px;
  transition: 0.2s ease;
}

.btn-editar {
  background: #ffd966;
}

.btn-editar:hover {
  background: #f0c957;
}

.btn-excluir {
  background: #ff6b6b;
  color: white;
}

.btn-excluir:hover {
  background: #e85a5a;
}

.btn-ver {
  background: #6bc1ff;
  color: white;
}

.btn-ver:hover {
  background: #57aee8;
}

.btn-recarregar {
  margin-top: 10px;
  padding: 8px 16px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease-in-out;
}

.btn-recarregar:hover {
  background: #357ab8;
}

/* Botão principal (Salvar, Confirmar) */
.btn-primary {
  background-color: #007acc; /* azul */
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.btn-primary:hover {
  background-color: #0056b3;
}

/* Botão secundário (Cancelar, Não) */
.btn-secondary {
  background-color: #6c757d; /* cinza */
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.btn-secondary:hover {
  background-color: #5a6268;
}

/* Botão de perigo (Sim para excluir) */
.btn-danger {
  background-color: #dc3545; /* vermelho */
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.btn-danger:hover {
  background-color: #c82333;
}

/* ===============================
   ESTILOS DE MODAIS
   =============================== */

.modal {
  display: none; /* escondido por padrão */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* overlay mais escuro */
  animation: fadeIn 0.3s ease;
}

body.modal-open {
  overflow: hidden; /* trava scroll */
  padding-right: 0; /* evita compensação da barra */
}

.modal.show {
  visibility: visible;
  opacity: 1;
}

/* Cabeçalho */
.modal-content h3 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Cores por tipo de modal */
#modal-alerta .modal-content h3 {
  color: #f9c700;
} /* amarelo alerta */
#modal-sucesso .modal-content h3 {
  color: #00a226;
} /* verde sucesso */
#modal-erro .modal-content h3 {
  color: #ff0019;
} /* vermelho erro */
#modal-confirmacao .modal-content h3 {
  color: #007bff;
} /* azul confirmação */

#modal-sugestoes .modal-content {
  width: 700px; /* ajuste como quiser */
  max-width: 90%;
}

#modal-sugestoes textarea {
  width: 100%;
  min-height: 180px; /* altura maior */
  resize: vertical; /* permite redimensionar só pra baixo */
}

/* Centraliza os botões apenas dentro da modal */
#modal-sugestoes .button-group {
  display: flex;
  justify-content: center; /* centraliza horizontal */
  gap: 12px; /* espaço entre os botões */
  margin-top: 20px;
}

/* Botão de fechar */
.close {
  position: absolute; /* fixa dentro da modal */
  top: 6px; /* distância do topo */
  right: 12px; /* distância da direita */
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.close:hover {
  color: #000;
}

.btn-ok {
  background-color: #007acc;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.btn-ok:hover {
  background-color: #0056b3;
}

/* Checkbox dentro do modal de alerta */
#modal-alerta .modal-content input[type="checkbox"],
#modal-alerta .modal-content label[for="checkbox-alerta"] {
  display: inline-block; /* mantém lado a lado */
  vertical-align: center; /* alinha verticalmente */
  margin-right: 6px; /* espaço entre checkbox e texto */
  font-size: 0.95rem;
  color: #444;
  cursor: pointer;
}

#modal-alerta .modal-content input[type="checkbox"] {
  margin: 0 !important;
  display: inline-block !important; /* garante que não vire bloco */
}
.top-right {
  position: fixed;
  top: 130px;
  right: 30px;
  z-index: 9999; /* força ficar por cima de tudo */
}

.top-right button {
  padding: 8px 12px;
  background-color: #007acc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transform: scale(1.1); /* aumenta 10% o tamanho total */
}

/* Estilo base do botão de contatos */
#btnContatos {
  font-weight: bold;
  color: #2563eb;
  background: #f0f9ff;
  border: 2px solid #2563eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;

  /* mesmo efeito visual das linhas */
  animation: destaque 1s ease-in-out;
}

#btnContatos:hover {
  background: #007acc; /* azul mais forte */
  color: #fff; /* texto branco */
  transform: scale(1.05); /* leve aumento */
  transition: all 0.3s ease;
}

.top-right button:hover {
  background-color: #0056b3;
}

.modal-content img {
  display: block;
  margin: 0 auto 15px auto;
  max-width: 300px;
  border-radius: 8px;
  border: 2px solid #ddd; /* borda suave */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* sombra leve */
}

/* Só para a modal de contatos */
#modal-contatos h2 {
  text-align: center; /* título centralizado */
}

#modal-contatos p {
  text-align: left; /* cada linha alinhada à esquerda */
  margin: 8px 0; /* espaçamento entre linhas */
}

#modal-contatos a {
  display: inline; /* link na mesma linha do texto */
  margin-left: 5px; /* pequeno espaço depois do título */
}

/* Só aumenta a largura da modal de contatos */
#modal-contatos .modal-content {
  max-width: 500px; /* antes estava menor, agora mais largo */
  width: 90%; /* ocupa até 90% da tela em dispositivos menores */
}

/* Classe aplicada dinamicamente via JS */
.shake-effect {
  animation: shake 0.4s ease;
}

#modal-sucesso .modal-content {
  animation: pulse 0.6s ease;
}

/* ============================
   Feedback Visual e Textual
============================ */
.feedback-container {
  display: flex;
  gap: 10px;
  align-items: center; /* garante alinhamento vertical */
}

.campo-senha {
  height: 40px;
  padding: 0 10px;
  box-sizing: border-box;
  font-size: 14px;
  margin-top: 14px; /* sobe ou desce o campo */
  /*margin-bottom: 2px;*/
}

.btn-validar {
  height: 40px;
  padding: 0 10px;
  display: inline-flex; /* alinha conteúdo interno */
  align-items: center; /* centraliza texto verticalmente */
  justify-content: center;
  vertical-align: middle; /* ajuda em casos de baseline diferente */
  cursor: pointer;
}

.regras-senha ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.regras-senha li {
  margin: 4px 0;
  color: #333;
}

.regras-senha li.valida {
  color: green;
}

.regras-senha li.invalida {
  color: red;
}

.regras-senha .check {
  margin-right: 6px;
}

/* ============================
   Contraste de Cores
============================ */
.contraste {
  padding: 10px;
  text-align: center;
  margin: 5px 0;
}

.contraste.bom {
  background: #000;
  color: #fff;
}

.contraste.ruim {
  background: #555;
  color: #666;
}

.contraste.excelente {
  background: #004080;
  color: #ffffff;
}

.contraste.intermediario {
  background: #999;
  color: #333;
}

/* ============================
   Zoom ao Foco
============================ */
.zoom-container {
  display: flex;
  flex-direction: column;
  gap: 20px; /* espaço entre texto e logo */
}

.zoom-texto {
  transition: font-size 0.2s ease;
}

.zoom-texto:hover {
  font-size: 140%;
}

.logo-acessibilidade {
  width: 150px;
  height: auto;
  transition: transform 0.2s ease;
}

.logo-acessibilidade:hover {
  transform: scale(1.4);
}
/* Corpo do balão – verde translúcido */
.tooltip.tooltip-balao .tooltip-inner {
  background-color: rgba(0, 187, 87, 0.65);
  color: #003d2b;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  max-width: 220px;
  backdrop-filter: blur(4px);
}

/* Seta combinando com o balão */
.tooltip.tooltip-balao .tooltip-arrow::before {
  border-color: transparent;
}

.tooltip.tooltip-balao.bs-tooltip-end .tooltip-arrow::before {
  border-left-color: rgba(0, 187, 87, 0.65);
  border-width: 8px;
}

.tooltip.bs-tooltip-end .tooltip-arrow {
  left: -8px;
}

/* ===== Título principal QAPlayground – forçando texto branco ===== */
h1 {
  text-align: center;
  background: linear-gradient(to bottom, #023e8a, #007acc, #4dabf7);
  color: #ffffff !important; /* força o branco */
  padding: 16px 20px 20px 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Botão Dark Mode ===== */
#toggle-dark {
  position: absolute;
  top: 58px;
  right: 67px;
  background: #e63946;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.3s;
}

#toggle-dark:hover {
  background: #b71c1c;
}

/* ===== Dark Mode apenas na área de conteúdo ===== */
.content.dark {
  background-color: #121212;
  color: #e0e0e0;
}
/* Texto destaque ajusta cor no Dark Mode */
.content.dark .texto-destaque {
  color: #81d4fa; /* azul claro, visível sobre fundo escuro */
}
