/* ==========================================================================
   TEMA NOBRE UNIFICADO: SEU ASTRÓLOGO (https://seuastrologo.com.br / https://seuastrologo.com)
   Aplicado ao ASTROMAX
   - Tipografia Nobre: Cormorant Garamond (títulos/destaques) + Outfit (corpo/botões/inputs)
   - Paleta de Cores:
       Fundo Principal: #1B1F3B (Azul Noite Profundo)
       Cards e Painéis: #2E3A6E (Azul Safira Noturno)
       Dourado Solar:   #C9A54C e #E3C777 (Destaques, Bordas, Acentos, Botões Nobres)
       Púrpura Místico: #9B8EC4 (Subtítulos, Badges, Efeitos)
       Papiro / Moon:   #F4ECD8 (Texto principal, leitura quente e agradável)
       Muted Lavanda:   #B9B5D0 (Texto secundário e legendas)
       Bordas Sutis:    rgba(201, 165, 76, 0.28) e rgba(255, 255, 255, 0.12)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --sa-bg: #1B1F3B;
  --sa-bg-card: #2E3A6E;
  --sa-gold: #C9A54C;
  --sa-gold-light: #E3C777;
  --sa-rose: #9B8EC4;
  --sa-moon: #F4ECD8;
  --sa-mut: #B9B5D0;
  --sa-line: rgba(255, 255, 255, 0.12);
  --sa-gold-border: rgba(201, 165, 76, 0.3);
}

/* ==========================================================================
   RESET & FUNDO CÓSMICO ESTRELADO GLOBAL
   ========================================================================== */
html, body {
  background-color: #1B1F3B !important;
  color: #F4ECD8 !important;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif !important;
  min-height: 100vh;
}

body {
  background-image: 
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.6) 50%, transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.45) 50%, transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(201, 165, 76, 0.55) 50%, transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.45) 50%, transparent),
    linear-gradient(rgba(15, 20, 42, 0.88), rgba(27, 31, 59, 0.94)) !important;
  background-size: 340px 340px, 260px 260px, 420px 420px, 300px 300px, 100% 100% !important;
  background-attachment: fixed !important;
}

/* Substituição dos orbs pelo fundo cósmico integrado */
.ambient-background {
  background-color: transparent !important;
  opacity: 0.25 !important;
}

/* ==========================================================================
   TIPOGRAFIA NOBRE
   ========================================================================== */
h1, h2, h3, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .section-heading {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  letter-spacing: 0.02em !important;
  color: #FFFFFF !important;
}

h4, h5, h6 {
  font-family: 'Outfit', sans-serif !important;
  color: #F4ECD8 !important;
}

p, span, div, label, li, a, td, th {
  font-family: 'Outfit', sans-serif !important;
}

.text-muted, .text-secondary {
  color: #B9B5D0 !important;
}

/* ==========================================================================
   BARRA DE NAVEGAÇÃO SUPERIOR UNIFICADA (NAVBAR) - Altura Padronizada 68px
   ========================================================================== */
.navbar, .root-navbar, nav.navbar {
  height: 68px !important;
  max-height: 68px !important;
  min-height: 68px !important;
  padding: 0 !important;
  background-color: rgba(27, 31, 59, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(201, 165, 76, 0.28) !important;
  box-shadow: 0 4px 25px rgba(10, 15, 35, 0.5) !important;
  transition: all 0.3s ease;
  z-index: 50000 !important;
}

.navbar .container,
.navbar .navbar-container {
  height: 68px !important;
  display: flex !important;
  align-items: center !important;
}

.navbar .navbar-brand .logo-text,
.navbar-brand span {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 1.55rem !important;
  color: #C9A54C !important;
  letter-spacing: 0.5px !important;
}

.navbar-nav .nav-link {
  color: #F4ECD8 !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.25s ease, text-shadow 0.25s ease !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #E3C777 !important;
  text-shadow: 0 0 10px rgba(201, 165, 76, 0.5) !important;
}

.nav-link.active-sa-nav {
  color: #E3C777 !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   CARDS, PAINÉIS, MODAIS & BARRA DE FERRAMENTAS (.barraMenu)
   Efeito idêntico aos Cards Nobres do Tarot & Landing Page
   ========================================================================== */
.glass-card, 
.card, 
.card-portal, 
.service-card-pro, 
.auth-card-modern,
.pesquisa-header-banner,
.pesquisa-card,
#carouselRecursosAstromax .carousel-inner,
.barraMenu,
#section_3 .barraMenu,
#section_5 .barraMenu {
  background: 
    radial-gradient(circle at 50% 0%, rgba(85, 105, 185, 0.45) 0%, rgba(46, 58, 110, 0) 75%),
    linear-gradient(160deg, #2E3A6E 0%, #1B1F3B 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(201, 165, 76, 0.45) !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 45px rgba(10, 15, 35, 0.65), 0 0 25px rgba(201, 165, 76, 0.12) !important;
  color: #F4ECD8 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.barraMenu:hover,
#section_3 .barraMenu:hover,
#section_5 .barraMenu:hover,
.glass-card:hover,
.card:hover,
.service-card-pro:hover {
  border-color: rgba(227, 199, 119, 0.6) !important;
  box-shadow: 0 20px 55px rgba(10, 15, 35, 0.8), 0 0 30px rgba(201, 165, 76, 0.22) !important;
}

/* Labels e Textos da Barra de Ferramentas */
.barraMenu label {
  color: #E3C777 !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  margin-bottom: 4px;
}

/* PRESERVAÇÃO DOS BOTÕES DE ÍCONES DA TOOLBAR (.parentButtons) */
/* Mantém o fundo branco limpo e alto contraste para ícones escuros, pretos e coloridos */
.parentButtons button {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 5px 8px !important;
  margin: 3px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

.parentButtons button:hover {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  border-color: #C9A54C !important;
  box-shadow: 0 0 8px rgba(201, 165, 76, 0.5) !important;
  transform: translateY(-1px) !important;
}

.parentButtons button.highlight {
  border: 3px solid #16a34a !important;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.6) !important;
}

.parentButtons button.btn-desativado {
  background: #9ca3af !important;
  background-color: #9ca3af !important;
  border: 1px solid #64748b !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.parentButtons button.btn-ativo {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 2px solid #C9A54C !important;
  box-shadow: 0 0 10px rgba(201, 165, 76, 0.4) !important;
}

.parentButtons button img {
  filter: none !important;
  opacity: 1 !important;
  vertical-align: middle !important;
}

.parentButtons button svg {
  color: #0f172a !important;
  stroke: #0f172a !important;
  opacity: 1 !important;
}

/* Modais */
.modal-content {
  background: linear-gradient(160deg, #2E3A6E 0%, #1B1F3B 100%) !important;
  border: 1px solid rgba(201, 165, 76, 0.3) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8) !important;
  color: #F4ECD8 !important;
}

.modal-header, .modal-footer {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   BOTÕES & AÇÕES SOLARES
   ========================================================================== */
.btn-primary, 
.btn-gold, 
.btn-sa-solar,
.custom-btn {
  background: linear-gradient(135deg, #C9A54C 0%, #B8923E 100%) !important;
  color: #1B1F3B !important;
  border: 1px solid #E3C777 !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 15px rgba(201, 165, 76, 0.3) !important;
  transition: all 0.25s ease !important;
}

.btn-primary:hover, 
.btn-gold:hover, 
.btn-sa-solar:hover,
.custom-btn:hover {
  background: linear-gradient(135deg, #E3C777 0%, #C9A54C 100%) !important;
  color: #0d1124 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(201, 165, 76, 0.5) !important;
}

.btn-outline-primary,
.btn-outline-gold {
  background: rgba(201, 165, 76, 0.1) !important;
  border: 1px solid rgba(201, 165, 76, 0.4) !important;
  color: #F4ECD8 !important;
  border-radius: 10px !important;
}

.btn-outline-primary:hover,
.btn-outline-gold:hover {
  background: rgba(201, 165, 76, 0.25) !important;
  border-color: #E3C777 !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   INPUTS, FORMULÁRIOS & SELETORES
   ========================================================================== */
.form-control, 
.form-select, 
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"], 
input[type="date"], 
input[type="time"], 
select, 
textarea {
  background: rgba(30, 36, 68, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #F4ECD8 !important;
  border-radius: 8px !important;
  font-family: 'Outfit', sans-serif !important;
}

.form-control:focus, 
.form-select:focus,
input:focus, 
select:focus, 
textarea:focus {
  border-color: #C9A54C !important;
  background: rgba(46, 58, 110, 0.9) !important;
  box-shadow: 0 0 12px rgba(201, 165, 76, 0.35) !important;
  outline: none !important;
}

.form-label, label {
  color: #E3C777 !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
}

/* ==========================================================================
   TABELAS & LISTAGENS
   ========================================================================== */
table {
  color: #F4ECD8 !important;
}

table th {
  color: #9B8EC4 !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  border-bottom: 1px solid rgba(201, 165, 76, 0.3) !important;
}

table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

table tr:hover td {
  background-color: rgba(201, 165, 76, 0.05) !important;
}

/* ==========================================================================
   BADGES, TAGS & STATUS PILLS
   ========================================================================== */
.badge-gold, .section-tagline {
  background: rgba(201, 165, 76, 0.15) !important;
  border: 1px solid rgba(201, 165, 76, 0.35) !important;
  color: #E3C777 !important;
}

.user-status-pill {
  background: rgba(30, 36, 68, 0.8) !important;
  border: 1px solid rgba(201, 165, 76, 0.35) !important;
}

/* ==========================================================================
   RODAPÉ (FOOTER)
   ========================================================================== */
footer, .site-footer {
  background-color: rgba(20, 24, 48, 0.95) !important;
  border-top: 1px solid rgba(201, 165, 76, 0.25) !important;
  color: #B9B5D0 !important;
}
