/* ==========================================================================
   1. ESTILOS GLOBAIS DOS COMPONENTES DAS NOTÍCIAS
   ========================================================================== */

/* Botões baseados na variável CSS do site */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: "Open Sans", sans-serif;
}
.btn-primario {
  background-color: var(--background-color, #922b40); /* Usa a variável CSS */
  color: #ffffff !important;
}
.btn-primario:hover {
  /* Escurece automaticamente qualquer cor gerada pela variável usando filter */
  filter: brightness(0.85); 
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.btn-secundario {
  background-color: #f4f5f6;
  color: #333333 !important;
  border-color: #eaeaea;
}
.btn-secundario:hover {
  background-color: #e2e2e2;
  transform: translateY(-2px);
}

/* Lista de Arquivos (PDF, DOC) */
.lista-arquivos {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.lista-arquivos li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  transition: background 0.3s;
}
.lista-arquivos li:hover {
  background-color: #f1f1f1;
}
.lista-arquivos a {
  text-decoration: none;
  color: var(--background-color, #922b40);
  font-weight: 700;
}
.lista-arquivos a:hover {
  text-decoration: underline;
}
.icone-pdf {
  color: #d32f2f;
  font-size: 24px;
}
.icone-doc {
  color: #1976d2;
  font-size: 24px;
}

/* Webview PDF (Iframe) */
.webview-container {
  margin: 25px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.webview-container iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* ==========================================================================
   2. ESTILOS DA PÁGINA DO MANUAL (Painel interno)
   ========================================================================== */
.manual-redator {
  font-family: "Open Sans", sans-serif;
  max-width: 1000px;
  margin: 40px auto;
  color: #333;
  line-height: 1.6;
}
.manual-header {
  text-align: center;
  margin-bottom: 50px;
}
.manual-header h1 {
  color: var(--background-color, #922b40);
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 15px;
}
.manual-header .divider {
  width: 60px;
  height: 3px;
  background-color: var(--background-color, #922b40);
  margin: 0 auto 20px auto;
}
.manual-section {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.secao-titulo h2 {
  color: #333;
  font-size: 1.5rem;
  border-bottom: 2px solid #f4f5f6;
  padding-bottom: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.secao-titulo p {
  color: #666;
  margin-bottom: 20px;
}
.exemplo-visual {
  background-color: #fbfbfb;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

/* Área do Código e Botão */
.codigo-container {
  position: relative;
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
}
.codigo-container pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}
.codigo-container code {
  color: #d4d4d4;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
}
.btn-copiar {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-copiar:hover {
  background-color: #555;
}