/* ==========================================================================
   GED - Gestão Eletrônica de Documentos
   Estilos Globais e Layout do Portal
   Arquivo: css/estilo.css
   ========================================================================== */
/* --- Esconde o menu inicialmente e prepara a transição de entrada --- */
#menuItens {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Classe ativada via JS quando o Turnstile for concluído */
#menuItens.revelado {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* Card do Captcha */
.captcha-card {
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
  transition: all 0.4s ease;
}

.captcha-card.validado {
  background: rgba(236, 253, 245, 0.9);
  border-color: #a7f3d0;
}
/* fim dos estilos para o turnstile */

.margemTopo {
  margin-top: 10px;
}

.margemEsquerda {
  margin-left: 8px;
}

.fonte14 {
  font-size: 14px;
  font-weight: bold;
}

.fonte12 {
  font-size: 12px;
  font-weight: bold;
}

.fonte10 {
  font-size: 10px;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   2. Configurações Globais e Imagem de Fundo (images/fundo.png)
   -------------------------------------------------------------------------- */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: url("../images/fundo.png") no-repeat center center fixed;
  background-size: cover;
  position: relative;
  min-height: 100vh;
  color: #0f172a;
}

/* Camada de suavização para garantir legibilidade e alto contraste sobre o plano de fundo */
body::before {
  content: "";
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25) 0%, rgba(226, 232, 240, 0.55) 100%);
  z-index: -1;
}

.container-main {
  max-width: 1280px;
}

/* Wrapper Principal com efeito Glassmorphism (Vidro Fosco) */
.main-wrapper {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  border-radius: 24px !important;
}

/* --------------------------------------------------------------------------
   3. Cabeçalho, Brasão e Título do Portal
   -------------------------------------------------------------------------- */
.header-img-container img {
  max-height: 280px;
  object-fit: cover;
}

.portal-title-section {
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.portal-title-section h2 {
  font-weight: 800 !important;
  color: #0f172a;
  letter-spacing: -0.5px;
}

/* --------------------------------------------------------------------------
   4. Balão de Fala do Assistente Miguel (CSS Puro)
   -------------------------------------------------------------------------- */
.speech-bubble-protocol {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 1.1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Setinha inferior do balão apontada para a imagem do Miguel */
.speech-bubble-protocol::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #ffffff transparent;
  display: block;
  width: 0;
}

.miguel-container {
  max-width: 165px;
}

#miguelGif {
  border-radius: 20px;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

/* --------------------------------------------------------------------------
   5. Botões de Menu Padronizados (Altura Fixa & Alinhamento Flexbox)
   -------------------------------------------------------------------------- */
.btn-menu-protocol {
  display: flex !important;
  align-items: center !important;
  min-height: 68px !important; /* Força exatamente a mesma altura em todos os botões */
  padding: 0.6rem 1rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  line-height: 1.25;
  width: 100%;
}

/* Impede que o ícone diminua de tamanho ou desalinhe se o texto ocupar 2 linhas */
.btn-menu-protocol i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-menu-protocol span {
  flex-grow: 1;
}

.btn-menu-protocol:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08) !important;
}

/* Cores dos Botões (Preservando a paleta original do Bootstrap com visual outline) */
.btn-outline-success {
  border-color: #10b981 !important;
  color: #047857 !important;
  background-color: rgba(255, 255, 255, 0.85);
}
.btn-outline-success:hover {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

.btn-outline-info {
  border-color: #06b6d4 !important;
  color: #0e7490 !important;
  background-color: rgba(255, 255, 255, 0.85);
}
.btn-outline-info:hover {
  background-color: #06b6d4 !important;
  color: #ffffff !important;
}

.btn-outline-secondary {
  border-color: #64748b !important;
  color: #334155 !important;
  background-color: rgba(255, 255, 255, 0.85);
}
.btn-outline-secondary:hover {
  background-color: #64748b !important;
  color: #ffffff !important;
}

.btn-outline-warning {
  border-color: #f59e0b !important;
  color: #b45309 !important;
  background-color: rgba(255, 255, 255, 0.85);
}
.btn-outline-warning:hover {
  background-color: #f59e0b !important;
  color: #ffffff !important;
}

.btn-outline-primary {
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
  background-color: rgba(255, 255, 255, 0.85);
}
.btn-outline-primary:hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

.btn-outline-dark {
  border-color: #334155 !important;
  color: #1e293b !important;
  background-color: rgba(255, 255, 255, 0.85);
}
.btn-outline-dark:hover {
  background-color: #334155 !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   6. Área de Conteúdo Dinâmico, Alertas, Formulários e Accordion
   -------------------------------------------------------------------------- */
.content-area {
  min-height: 250px;
}

/* Estilização automática para elementos gerados via JS (Cards e Alertas) */
.content-area .card, 
.content-area .alert {
  border-radius: 16px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

.accordion-item {
  border-radius: 12px !important;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   7. Rodapé do Card
   -------------------------------------------------------------------------- */
.footer-copyright {
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}