/* ==========================================================================
   Configurações de Fluxo Iniciais e Segurança (Cloudflare Turnstile)
   ========================================================================== */

#corpo_pagina {
  display: none;
}

/*
#captcha-container {
  display: none;
}
*/


/* Container de segurança premium centralizado */
#captcha-container {
  max-width: 460px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

/* Animação suave de transição (Fade-In controlado) */
@keyframes portalFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-entrance {
  animation: portalFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   Configurações Globais e Retorno do Fundo Original Certificado
   ========================================================================== */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: url("../images/fundo.png") no-repeat center center fixed;
  background-size: cover;
  position: relative;
  min-height: 100vh;
  color: #0f172a;
}

/* Camada gradiente que suaviza o centro dando destaque para os elementos e mantendo os circuitos */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(230, 239, 245, 0.45) 100%);
  z-index: -2;
}

.container-main {
  max-width: 1260px;
}

/* ==========================================================================
   Wrapper Principal (Efeito Vidro / Glassmorphism Holográfico)
   ========================================================================== */
.main-wrapper {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3) !important;
  border-radius: 24px !important;
}

/* Seção de Título */
.portal-title-section {
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.portal-title-section h2 {
  font-weight: 800 !important;
  color: #0f172a;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.footer-copyright {
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================================
   Cards dos Sistemas (Contraste Premium com Brilho Cyber)
   ========================================================================== */
.system-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 20px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.system-card:hover {
  transform: translateY(-5px);
  background: #ffffff !important;
  border-color: #06b6d4 !important; 
  box-shadow: 
    0 20px 35px -10px rgba(6, 182, 212, 0.25), 
    0 0 15px -2px rgba(6, 182, 212, 0.15) !important;
}

.system-card .card-title {
  color: #0f172a;
  letter-spacing: -0.3px;
}

/* Configurações de Botões baseados em SaaS Moderno */
.system-card .btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  border: none !important;
  transition: all 0.2s ease;
}

/* Botão Sólido Verde */
.system-card .btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}
.system-card .btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
}

/* Botão Sólido Azul Info */
.system-card .btn-info {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%) !important;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25) !important;
}
.system-card .btn-info:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.4) !important;
}

/* Botão Outline Verde (Android) */
.system-card .btn-outline-success {
  border: 1.5px solid #10b981 !important;
  color: #047857 !important;
  font-weight: 600;
}
.system-card .btn-outline-success:hover {
  background: #10b981 !important;
  color: #ffffff !important;
}

/* Botão Outline Azul Premium (iOS - Apple Store) */
.system-card .btn-outline-primary {
  border: 1.5px solid #0071e3 !important;
  color: #0071e3 !important;
  font-weight: 600;
}
.system-card .btn-outline-primary:hover {
  background: #0071e3 !important;
  color: #ffffff !important;
}

/* Botão Outline Escuro (Navegador Edge) */
.system-card .btn-outline-dark {
  border: 1.5px solid #475569 !important;
  color: #334155 !important;
  font-weight: 600;
}
.system-card .btn-outline-dark:hover {
  background: #475569 !important;
  color: #ffffff !important;
}

.system-icon {
  width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   Componentes do Assistente (Miguel)
   ========================================================================== */
.header-img-container {
  width: 100%;
  background-color: #f8fafc; /* Um fundo neutro caso a proporção da tela deixe alguma sobra nas bordas */
}

.header-img-container img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
}

.speech-bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.9) transparent;
  display: block;
  width: 0;
}

#miguelGif {
  border-radius: 20px;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.25);
}

.miguel-container {
  max-width: 165px;
}

/* Classes legadas por compatibilidade */
.margemTopo { margin-top: 10px; }
.margemEsquerda { margin-left: 8px; }