/* ============================================================
   HiroFlux — Dark Theme SoundWave Edition
   Arquivo  : css/theme-dark.css
   Inspirado: mktrendz_soundwave.html
   ============================================================ */

/* ─── 1. TOKENS / CSS VARIABLES ─────────────────────────────── */
:root {
  /* ── Fundos ── */
  --hiro-void:           #030a06;
  --hiro-deep:           #050f08;
  --hiro-surface:        #091410;
  --hiro-raised:         #0e1f18;
  --hiro-faint:          #1a3028;

  /* ── Brand Verde (principal) ── */
  --hiro-green:          #25ac6b;
  --hiro-green-dark:     #1d9a60;
  --hiro-green-light:    #4dce8f;
  --hiro-neon:           #7bebb6;

  /* ── Brand Teal (secundário / links) ── */
  --hiro-teal:           #0ca6ab;
  --hiro-teal-dark:      #098d91;
  --hiro-teal-light:     #2ec4c9;
  --hiro-teal-neon:      #6ddee1;

  /* ── Texto ── */
  --hiro-text-primary:   #e8faf2;
  --hiro-text-secondary: #c8dfd3;
  --hiro-text-muted:     #4a7a62;
  --hiro-text-dim:       #2d5040;

  /* ── Bordas ── */
  --hiro-border:         rgba(37, 172, 107, 0.18);
  --hiro-border-hot:     rgba(37, 172, 107, 0.55);
  --hiro-border-teal:    rgba(12, 166, 171, 0.25);

  /* ── Glows ── */
  --hiro-glow-green:     0 0 30px rgba(37, 172, 107, 0.45);
  --hiro-glow-teal:      0 0 30px rgba(12, 166, 171, 0.40);
  --hiro-glow-neon:      0 0 20px rgba(125, 235, 182, 0.30);

  /* ── Glassmorphism ── */
  --hiro-glass:          rgba(9, 20, 16, 0.75);
  --hiro-glass-light:    rgba(14, 31, 24, 0.65);
  --hiro-glass-card:     rgba(5, 15, 8, 0.85);

  /* ── Bootstrap overrides ── */
  --bs-body-bg:          #030a06;
  --bs-body-color:       #e8faf2;
  --bs-primary:          #0ca6ab;
  --bs-primary-rgb:      12, 166, 171;
  --bs-link-color:       #0ca6ab;
  --bs-link-hover-color: #2ec4c9;
}

/* ─── 2. KEYFRAMES ─────────────────────────────────────────── */

/* Orbs flutuantes */
@keyframes hiroDriftA {
  0%,100% { transform: translate(0, 0); }
  50%      { transform: translate(70px, 50px); }
}
@keyframes hiroDriftB {
  0%,100% { transform: translate(0, 0); }
  50%      { transform: translate(-50px, -70px); }
}
@keyframes hiroDriftC {
  0%,100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(calc(-50% + 35px), calc(-50% - 45px)); }
}

/* Linha de topo da sidebar pulsando */
@keyframes hiroTopGlow {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* Fade-in suave de elementos */
@keyframes hiroFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pulso de glow no botão */
@keyframes hiroGlowPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(37, 172, 107, 0.3); }
  50%       { box-shadow: 0 4px 25px rgba(37, 172, 107, 0.6); }
}

/* Ondas SVG (para browsers que suportam animação do atributo d) */
@keyframes hiroWave1 {
  0%,100% { d: path("M0,300 Q200,200 400,300 Q600,400 800,300 Q1000,200 1200,300 Q1400,400 1600,300"); }
  50%      { d: path("M0,300 Q200,400 400,300 Q600,200 800,300 Q1000,400 1200,300 Q1400,200 1600,300"); }
}
@keyframes hiroWave2 {
  0%,100% { d: path("M0,350 Q300,250 600,350 Q900,450 1200,350 Q1400,280 1600,350"); }
  50%      { d: path("M0,350 Q300,450 600,350 Q900,250 1200,350 Q1400,420 1600,350"); }
}
@keyframes hiroWave3 {
  0%,100% { d: path("M0,400 Q250,320 500,400 Q750,480 1000,400 Q1250,320 1500,400"); }
  50%      { d: path("M0,400 Q250,480 500,400 Q750,320 1000,400 Q1250,480 1500,400"); }
}

/* ─── 3. RESET GLOBAL ────────────────────────────────────────── */
html, body,
#kt_app_body,
#kt_app_root,
.app-page,
.app-default {
  background-color: var(--hiro-void) !important;
  color: var(--hiro-text-primary) !important;
}

/* ─── 4. BG CANVAS (Orbs + Ondas) ───────────────────────────── */
.hiro-bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Orbs de brilho */
.hiro-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hiro-orb1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(37,172,107,0.14), transparent 70%);
  top: -120px; left: 15%;
  animation: hiroDriftA 22s ease-in-out infinite;
}
.hiro-orb2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(12,166,171,0.11), transparent 70%);
  bottom: -60px; right: 8%;
  animation: hiroDriftB 28s ease-in-out infinite;
}
.hiro-orb3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(37,172,107,0.10), transparent 70%);
  top: 45%; left: 55%;
  animation: hiroDriftC 19s ease-in-out infinite;
}

/* SVG de ondas */
.hiro-waveform {
  position: absolute;
  width: 100%; height: 100%;
}
.hiro-wf {
  fill: none;
  stroke-width: 1.5;
  opacity: 0.065;
}
.hiro-w1 { stroke: var(--hiro-green);  animation: hiroWave1 9s  ease-in-out infinite; }
.hiro-w2 { stroke: var(--hiro-teal);   animation: hiroWave2 13s ease-in-out infinite; }
.hiro-w3 { stroke: var(--hiro-neon);   animation: hiroWave3 16s ease-in-out infinite; }

/* Grain (textura de ruído sutil) */
.hiro-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
}

/* ─── 5. SIDEBAR ─────────────────────────────────────────────── */
.app-sidebar {
  background: rgba(3, 10, 6, 0.87) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-right: 1px solid var(--hiro-border) !important;
}

/* Linha brilhante animada no topo da sidebar */
.app-sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hiro-green), var(--hiro-teal), transparent);
  animation: hiroTopGlow 4s ease-in-out infinite;
  z-index: 1;
}

/* Headings do menu (DASHBOARD, CAMPANHAS, etc.) */
.menu-item .menu-content .menu-heading,
.menu-heading {
  color: var(--hiro-text-muted) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  opacity: 0.8 !important;
  font-size: 0.7rem !important;
}

/* Links do menu */
.menu-link {
  color: var(--hiro-text-secondary) !important;
  transition: all 0.2s ease !important;
  border-radius: 6px !important;
}
.menu-link:hover {
  background: rgba(37, 172, 107, 0.08) !important;
  color: var(--hiro-green-light) !important;
}
.menu-link.active,
.menu-item.here > .menu-link {
  background: rgba(37, 172, 107, 0.15) !important;
  color: var(--hiro-neon) !important;
  box-shadow: inset 3px 0 0 var(--hiro-green), 0 0 15px rgba(37, 172, 107, 0.1) !important;
}

/* Ícones do menu */
.menu-icon i,
.menu-icon svg {
  color: var(--hiro-text-muted) !important;
  transition: color 0.2s ease !important;
}
.menu-link:hover .menu-icon i,
.menu-link.active .menu-icon i {
  color: var(--hiro-green-light) !important;
}

/* ─── 6. HEADER ──────────────────────────────────────────────── */
.app-header {
  background: rgba(3, 10, 6, 0.80) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--hiro-border) !important;
}

/* ─── 7. APP WRAPPER / MAIN ─────────────────────────────────── */
/* Apenas garante transparência — NÃO alterar position/z-index
   pois o Metronic usa flex layout que depende desses valores   */
.app-wrapper,
.app-main,
#kt_app_main,
#kt_app_wrapper {
  background: transparent !important;
}

/* ─── 8. CARDS & GLASSMORPHISM ───────────────────────────────── */
.card {
  background: var(--hiro-glass-card) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid var(--hiro-border) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55) !important;
  border-radius: 14px !important;
  animation: hiroFadeIn 0.4s ease-out both !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Linha colorida no topo dos cards */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hiro-green), var(--hiro-teal), transparent);
  opacity: 0.5;
}

.card-header {
  border-bottom: 1px solid var(--hiro-border) !important;
  background: transparent !important;
}

.card:hover {
  border-color: rgba(37, 172, 107, 0.35) !important;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.7), var(--hiro-glow-neon) !important;
  transition: all 0.3s ease !important;
}

/* ─── 9. TABELAS & TEXTOS GRAY ─────────────────────────────────── */
.table {
  color: var(--hiro-text-primary) !important;
}
.table td,
.table th {
  color: var(--hiro-text-primary) !important;
}

/* Adaptando TODAS as classes text-gray-* para o dark mode */
.text-gray-900,
.text-gray-800,
.text-gray-700 {
  color: #ffffff !important;
}
.text-gray-600,
.text-gray-500,
.text-gray-400 {
  color: var(--hiro-text-primary) !important;
}
.text-muted,
.text-gray-300,
.text-gray-200,
.text-gray-100 {
  color: var(--hiro-text-secondary) !important;
}

/* Adaptando backgrounds gray-* para o dark mode */
.bg-gray-100,
.bg-gray-200,
.bg-gray-300,
.bg-gray-400 {
  background-color: rgba(14, 31, 24, 0.5) !important;
}
.bg-gray-500,
.bg-gray-600,
.bg-gray-700 {
  background-color: rgba(14, 31, 24, 0.8) !important;
}
.bg-gray-800,
.bg-gray-900 {
  background-color: var(--hiro-surface) !important;
}

/* Cabeçalho da tabela */
.table thead th {
  background: rgba(37, 172, 107, 0.08) !important;
  color: var(--hiro-green-light) !important;
  border-bottom: 1px solid var(--hiro-border) !important;
  text-transform: uppercase !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
}

/* Primeira coluna */
table.table td:first-child,
table.table td:first-child * {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Última coluna */
.table tr > td:last-child {
  padding-right: 20px !important;
}

/* Linhas */
.table tr:hover td {
  background: rgba(37, 172, 107, 0.05) !important;
}

/* ─── 10. BOTÕES ─────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--hiro-teal), var(--hiro-teal-dark)) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(12, 166, 171, 0.35) !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--hiro-teal-light), var(--hiro-teal)) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 25px rgba(12, 166, 171, 0.5) !important;
  color: #ffffff !important;
}
.btn-primary:active,
.btn.btn-primary:active:not(.btn-active),
.btn-primary.active,
.btn-primary:active:focus,
.show > .btn-primary.dropdown-toggle {
  background: linear-gradient(135deg, var(--hiro-teal-dark), var(--hiro-teal)) !important;
  border-color: var(--hiro-teal-dark) !important;
  box-shadow: 0 4px 15px rgba(12, 166, 171, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(0) !important;
}

.btn-success {
  background: linear-gradient(135deg, var(--hiro-green), var(--hiro-green-dark)) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(37, 172, 107, 0.3) !important;
  animation: hiroGlowPulse 4s infinite !important;
}
.btn-success:hover {
  background: linear-gradient(135deg, var(--hiro-green-light), var(--hiro-green)) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 25px rgba(37, 172, 107, 0.55) !important;
  color: #ffffff !important;
}
.btn-success:active,
.btn.btn-success:active:not(.btn-active),
.btn-success.active {
  background: linear-gradient(135deg, var(--hiro-green-dark), var(--hiro-green)) !important;
  color: #ffffff !important;
  transform: translateY(0) !important;
}

.btn-danger,
.btn-danger i {
  color: #ffffff !important;
}

.btn-secondary,
.btn-light {
  background: rgba(14, 31, 24, 0.9) !important;
  border: 1px solid var(--hiro-border) !important;
  color: var(--hiro-text-primary) !important;
}
.btn-secondary:hover,
.btn-light:hover {
  background: rgba(26, 48, 40, 0.9) !important;
  border-color: var(--hiro-border-hot) !important;
  color: #fff !important;
}

/* Botões dark */
.btn-dark {
  background-color: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--hiro-text-primary) !important;
}
.btn-dark:hover,
.btn-dark:focus {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.btn-light-dark {
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: var(--hiro-text-secondary) !important;
  border: 1px solid transparent !important;
}
.btn-light-dark:hover,
.btn-light-dark.active,
.btn-active-dark:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* Botões light-primary (outline ghost) */
.btn-light-primary {
  background-color: rgba(12, 166, 171, 0.12) !important;
  color: var(--hiro-teal-light) !important;
  border: 1px solid transparent !important;
}
.btn-light-primary:hover,
.btn-light-primary.active,
.btn-active-light-primary:hover {
  background-color: rgba(12, 166, 171, 0.22) !important;
  color: #ffffff !important;
}

/* Botão light-danger (estilo transparente/red) */
.btn-light-danger {
  background-color: rgba(248, 113, 113, 0.1) !important;
  color: #f87171 !important;
  border: 1px solid transparent !important;
}
.btn-light-danger i {
  color: #f87171 !important;
}
.btn-light-danger:hover,
.btn-light-danger.active,
.btn-active-light-danger:hover {
  background-color: rgba(248, 113, 113, 0.2) !important;
  color: #ffffff !important;
}
.btn-light-danger:hover i {
  color: #ffffff !important;
}

/* Botão light-success */
.btn-light-success {
  background-color: rgba(37, 172, 107, 0.1) !important;
  color: var(--hiro-green-light) !important;
  border: 1px solid transparent !important;
}
.btn-light-success i {
  color: var(--hiro-green-light) !important;
}
.btn-light-success:hover,
.btn-light-success.active,
.btn-active-light-success:hover {
  background-color: rgba(37, 172, 107, 0.2) !important;
  color: #ffffff !important;
}
.btn-light-success:hover i {
  color: #ffffff !important;
}

/* Botão light-warning */
.btn-light-warning {
  background-color: rgba(245, 158, 11, 0.1) !important;
  color: #fbbf24 !important;
  border: 1px solid transparent !important;
}
.btn-light-warning i {
  color: #fbbf24 !important;
}
.btn-light-warning:hover,
.btn-light-warning.active,
.btn-active-light-warning:hover {
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #ffffff !important;
}
.btn-light-warning:hover i {
  color: #ffffff !important;
}

/* Botão outline */
.btn-outline-primary {
  border-color: var(--hiro-teal) !important;
  color: var(--hiro-teal) !important;
}
.btn-outline-primary:hover {
  background-color: var(--hiro-teal) !important;
  color: #ffffff !important;
}

/* ─── 11. FORMULÁRIOS ─────────────────────────────────────────── */
.form-control,
.form-select {
  background: var(--hiro-surface) !important;
  border: 1px solid var(--hiro-border) !important;
  color: var(--hiro-text-primary) !important;
  border-radius: 10px !important;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s !important;
  position: relative !important;
  z-index: 2 !important;
}
.form-control::placeholder,
.form-select::placeholder {
  color: var(--hiro-text-muted) !important;
}
.form-control:focus,
.form-select:focus {
  border-color: rgba(37, 172, 107, 0.6) !important;
  background: var(--hiro-raised) !important;
  box-shadow: 0 0 0 3px rgba(37, 172, 107, 0.12), inset 0 0 20px rgba(37, 172, 107, 0.04) !important;
  color: var(--hiro-text-primary) !important;
}
.form-check-input:checked {
  background-color: var(--hiro-teal) !important;
  border-color: var(--hiro-teal) !important;
}

/* Labels */
.form-label,
label {
  color: var(--hiro-text-secondary) !important;
}

/* ─── form-range (range slider) ─────────────────────────────── */
.form-range {
  accent-color: var(--hiro-green) !important;
}

/* Trilha */
.form-range::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, var(--hiro-green), var(--hiro-faint)) !important;
  border-radius: 2px;
}
.form-range::-moz-range-track {
  height: 4px;
  background: var(--hiro-faint) !important;
  border-radius: 2px;
}
.form-range::-moz-range-progress {
  background: var(--hiro-green) !important;
  height: 4px;
  border-radius: 2px;
}

/* Thumb */
.form-range::-webkit-slider-thumb {
  background: radial-gradient(circle, var(--hiro-green-light), var(--hiro-green)) !important;
  border: 2px solid var(--hiro-deep) !important;
  box-shadow: 0 0 0 3px rgba(37, 172, 107, 0.2), 0 0 14px rgba(37, 172, 107, 0.5) !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  transition: box-shadow 0.2s !important;
}
.form-range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 5px rgba(37, 172, 107, 0.25), 0 0 22px rgba(37, 172, 107, 0.7) !important;
}
.form-range::-moz-range-thumb {
  background: radial-gradient(circle, var(--hiro-green-light), var(--hiro-green)) !important;
  border: 2px solid var(--hiro-deep) !important;
  box-shadow: 0 0 0 3px rgba(37, 172, 107, 0.2), 0 0 14px rgba(37, 172, 107, 0.5) !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
}

/* Focus */
.form-range:focus {
  outline: none !important;
  box-shadow: none !important;
}
.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(37, 172, 107, 0.25), 0 0 22px rgba(37, 172, 107, 0.7) !important;
}

/* ─── 12. MODAIS ──────────────────────────────────────────────── */
.modal-content {
  background: rgba(5, 15, 8, 0.96) !important;
  border: 1px solid var(--hiro-border) !important;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-radius: 16px !important;
}
.modal-header {
  border-bottom: 1px solid var(--hiro-border) !important;
  background: transparent !important;
}
.modal-footer {
  border-top: 1px solid var(--hiro-border) !important;
}
.modal-title {
  color: var(--hiro-text-primary) !important;
}

/* ─── 13. BADGES ─────────────────────────────────────────────── */
.badge-light-dark,
.badge.bg-light-dark {
  background-color: rgba(255, 255, 255, 0.10) !important;
  color: var(--hiro-text-secondary) !important;
}
.badge.bg-dark,
.badge-dark {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--hiro-text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
.badge-light-primary {
  background-color: rgba(12, 166, 171, 0.15) !important;
  color: var(--hiro-teal-light) !important;
}
.badge-light-success {
  background-color: rgba(37, 172, 107, 0.15) !important;
  color: var(--hiro-green-light) !important;
}
.badge-light-warning {
  background-color: rgba(245, 158, 11, 0.15) !important;
  color: #facc15 !important;
}
.badge-light-danger {
  background-color: rgba(248, 113, 113, 0.15) !important;
  color: #f87171 !important;
}
.badge-light-info {
  background-color: rgba(12, 166, 171, 0.15) !important;
  color: var(--hiro-teal-light) !important;
}
.badge.bg-primary,
.badge-primary {
  background-color: var(--hiro-teal) !important;
  color: #ffffff !important;
}

/* ─── 14. TEXTOS / TIPOGRAFIA ─────────────────────────────────── */
.text-dark {
  color: var(--hiro-text-secondary) !important;
}
.text-primary,
.text-primary * {
  color: var(--hiro-teal) !important;
}
.text-success, .text-success * { color: var(--hiro-green-light) !important; }
.text-warning, .text-warning * { color: #facc15 !important; }
.text-danger,  .text-danger  * { color: #f87171 !important; }
.text-info,    .text-info    * { color: var(--hiro-teal-light) !important; }
.text-hover-primary:hover {
  color: var(--hiro-teal-light) !important;
}
a,
.link-primary {
  color: var(--hiro-teal) !important;
}
a:hover,
.link-primary:hover {
  color: var(--hiro-teal-light) !important;
}

/* Breadcrumbs */
.breadcrumb-item.text-muted { color: var(--hiro-text-muted) !important; }
.breadcrumb-item a { color: var(--hiro-teal) !important; }

/* ─── 15. FUNDOS / BACKGROUNDS ───────────────────────────────── */
.bg-body       { background-color: var(--hiro-void) !important; }
.bg-dark       { background-color: rgba(14, 31, 24, 0.9) !important; border: 1px solid var(--hiro-border) !important; }
.bg-light      { background-color: rgba(14, 31, 24, 0.6) !important; }
.bg-light-dark { background-color: rgba(255, 255, 255, 0.08) !important; }
.bg-primary    { background-color: var(--hiro-teal) !important; }
.bg-success    { background-color: var(--hiro-green) !important; }
.bg-light-primary {
  background-color: rgba(12, 166, 171, 0.12) !important;
  color: var(--hiro-teal-light) !important;
}
.bg-light-success {
  background-color: rgba(37, 172, 107, 0.12) !important;
  color: var(--hiro-green-light) !important;
}
.bg-light-warning {
  background-color: rgba(245, 158, 11, 0.12) !important;
  color: #facc15 !important;
}
.bg-light-danger {
  background-color: rgba(248, 113, 113, 0.12) !important;
  color: #f87171 !important;
}
.bg-light-info {
  background-color: rgba(12, 166, 171, 0.12) !important;
  color: var(--hiro-teal-light) !important;
}
.pre, code, .bg-white {
  background-color: rgba(9, 20, 16, 0.9) !important;
  color: var(--hiro-text-primary) !important;
}

/* ─── 16. BORDAS ─────────────────────────────────────────────── */
.border-dark    { border-color: rgba(255, 255, 255, 0.14) !important; }
.border-primary { border-color: var(--hiro-teal) !important; }
.separator,
.separator-dark,
.separator.border-dark {
  border-color: var(--hiro-border) !important;
  opacity: 0.6 !important;
}

/* ─── 17. SVG ICONS ──────────────────────────────────────────── */
.svg-icon-dark    { color: var(--hiro-text-secondary) !important; }
.svg-icon-primary { color: var(--hiro-teal) !important; }

/* ─── 18. NAVEGAÇÃO / TABS ───────────────────────────────────── */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--hiro-teal) !important;
  color: #ffffff !important;
}
.nav-tabs .nav-link.active {
  color: var(--hiro-teal-light) !important;
  border-bottom-color: var(--hiro-teal) !important;
  background: transparent !important;
}
.nav-link {
  color: var(--hiro-text-muted) !important;
}
.nav-link:hover {
  color: var(--hiro-teal-light) !important;
}

/* Menu Sidebar ativo (reforço) */
.menu-link.active,
.menu-item.here > .menu-link {
  background: rgba(12, 166, 171, 0.12) !important;
  color: var(--hiro-teal-light) !important;
  box-shadow: inset 3px 0 0 var(--hiro-teal) !important;
}

/* --- Menu link text-dark --- */
.menu-item .menu-link.text-dark,
.nav-link.text-dark {
  color: var(--hiro-text-secondary) !important;
}
.menu-item .menu-link.text-dark:hover,
.nav-link.text-dark:hover {
  color: var(--hiro-green-light) !important;
}

/* ─── 19. PAGINAÇÃO ──────────────────────────────────────────── */
.page-item.active .page-link {
  background-color: var(--hiro-teal) !important;
  border-color: var(--hiro-teal) !important;
  color: #ffffff !important;
}
.page-link {
  color: var(--hiro-teal) !important;
  background: var(--hiro-glass) !important;
  border-color: var(--hiro-border) !important;
}
.page-link:hover {
  color: var(--hiro-teal-light) !important;
  background: rgba(12, 166, 171, 0.12) !important;
}

/* ─── 20. SPINNERS / PROGRESSO ───────────────────────────────── */
.spinner-border.text-primary,
.spinner-grow.text-primary { color: var(--hiro-teal) !important; }
.progress-bar              { background-color: var(--hiro-green) !important; }
.progress                  { background-color: var(--hiro-faint) !important; }

/* ─── 21. TABELAS (variação dark) ────────────────────────────── */
.table-dark {
  background-color: rgba(14, 31, 24, 0.9) !important;
  color: var(--hiro-text-primary) !important;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(37, 172, 107, 0.03) !important;
  color: var(--hiro-text-primary) !important;
}

/* ─── 22. DROPDOWNS ──────────────────────────────────────────── */
.menu.menu-sub-dropdown,
.dropdown-menu {
  background: rgba(5, 15, 8, 0.97) !important;
  border: 1px solid var(--hiro-border) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7) !important;
}
.dropdown-item,
.menu-sub-dropdown .menu-item a {
  color: var(--hiro-text-secondary) !important;
}
.dropdown-item:hover,
.menu-sub-dropdown .menu-item a:hover {
  background: rgba(37, 172, 107, 0.08) !important;
  color: var(--hiro-green-light) !important;
}

/* ─── 23. SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar            { width: 3px; height: 3px; }
::-webkit-scrollbar-track      { background: transparent; }
::-webkit-scrollbar-thumb      { background: var(--hiro-faint); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover{ background: var(--hiro-green); }

/* ─── 24. LOGO ───────────────────────────────────────────────── */
.app-sidebar-logo img {
  max-height: 25px !important;
  width: auto !important;
  filter: drop-shadow(0 0 8px rgba(37, 172, 107, 0.5)) !important;
  transition: filter 0.3s !important;
}
.app-sidebar-logo img:hover {
  filter: drop-shadow(0 0 16px rgba(37, 172, 107, 0.85)) !important;
}

/* ─── 25. LAYOUT RESPONSIVE ──────────────────────────────────── */
@media (min-width: 992px) {
  .app-wrapper {
    margin-left: 265px !important;
    transition: margin-left 0.3s ease !important;
  }
  .app-header {
    left: 265px !important;
    width: calc(100% - 265px) !important;
    transition: left 0.3s ease, width 0.3s ease !important;
  }
  body[data-kt-app-sidebar-minimize="on"] .app-wrapper,
  body.app-sidebar-minimize .app-wrapper {
    margin-left: 70px !important;
  }
  body[data-kt-app-sidebar-minimize="on"] .app-header,
  body.app-sidebar-minimize .app-header {
    left: 70px !important;
    width: calc(100% - 70px) !important;
  }
  }
}
@media (max-width: 991px) {
  .app-wrapper { margin-left: 0 !important; }
  .app-header  { left: 0 !important; width: 100% !important; }
  .app-footer  { margin-left: 0 !important; }
}

/* ─── 26. LOGIN PAGE ─────────────────────────────────────────── */
body.app-blank {
  background: var(--hiro-void) !important;
}
.hiro-login-box {
  background: rgba(5, 15, 8, 0.90) !important;
  border: 1px solid var(--hiro-border) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), var(--hiro-glow-neon) !important;
}
/* Sobrescreve bg-body no login */
.bg-body {
  background: rgba(5, 15, 8, 0.90) !important;
  backdrop-filter: blur(24px) !important;
  border: 1px solid var(--hiro-border) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8) !important;
}
.hiro-login-logo {
  max-width: 200px;
  filter: drop-shadow(0 0 12px rgba(37, 172, 107, 0.5));
}

/* ─── 27. FOOTER ──────────────────────────────────────────────── */
.app-footer {
  background: rgba(3, 10, 6, 0.85) !important;
  border-top: 1px solid var(--hiro-border) !important;
  backdrop-filter: blur(10px) !important;
}

/* ─── 28. TOASTR / ALERTS ────────────────────────────────────── */
.toast-success { background-color: var(--hiro-green-dark) !important; }
.toast-info    { background-color: var(--hiro-teal-dark) !important; }
.toast-error   { background-color: #7f1d1d !important; }
.toast-warning { background-color: #78350f !important; }

/* ─── 29. SELECT2 ────────────────────────────────────────────── */
.select2-container--bootstrap5 .select2-selection {
  background: rgba(9, 20, 16, 0.85) !important;
  border-color: var(--hiro-border) !important;
  color: var(--hiro-text-primary) !important;
}
.select2-container--bootstrap5 .select2-dropdown {
  background: rgba(5, 15, 8, 0.97) !important;
  border-color: var(--hiro-border) !important;
}
.select2-container--bootstrap5 .select2-results__option--highlighted {
  background: rgba(37, 172, 107, 0.15) !important;
  color: var(--hiro-green-light) !important;
}

/* ─── 30. HOME — KPI CARDS ───────────────────────────────────── */
.hiro-kpi-card {
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.hiro-kpi-card:hover {
  transform: translateY(-3px) !important;
}
/* ícone decorativo de fundo */
.hiro-kpi-card::after {
  content: '';
  position: absolute;
  right: -20px; bottom: -20px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.hiro-kpi-icon {
  opacity: 0.9;
}

/* Variantes de cor */
.hiro-kpi-teal {
  background: linear-gradient(135deg, rgba(12,166,171,0.45), rgba(12,166,171,0.20)) !important;
  box-shadow: 0 8px 32px rgba(12,166,171,0.25) !important;
  border-color: rgba(12,166,171,0.35) !important;
}
.hiro-kpi-teal .hiro-kpi-icon { color: var(--hiro-teal-neon) !important; }
.hiro-kpi-teal:hover {
  box-shadow: 0 14px 40px rgba(12,166,171,0.4) !important;
}
.hiro-kpi-blue {
  background: linear-gradient(135deg, rgba(59,130,246,0.40), rgba(59,130,246,0.18)) !important;
  box-shadow: 0 8px 32px rgba(59,130,246,0.20) !important;
  border-color: rgba(59,130,246,0.30) !important;
}
.hiro-kpi-blue .hiro-kpi-icon { color: #60a5fa !important; }
.hiro-kpi-blue:hover {
  box-shadow: 0 14px 40px rgba(59,130,246,0.35) !important;
}
.hiro-kpi-green {
  background: linear-gradient(135deg, rgba(37,172,107,0.45), rgba(37,172,107,0.20)) !important;
  box-shadow: 0 8px 32px rgba(37,172,107,0.25) !important;
  border-color: rgba(37,172,107,0.35) !important;
}
.hiro-kpi-green .hiro-kpi-icon { color: var(--hiro-neon) !important; }
.hiro-kpi-green:hover {
  box-shadow: 0 14px 40px rgba(37,172,107,0.4) !important;
}
.hiro-kpi-amber {
  background: linear-gradient(135deg, rgba(245,158,11,0.38), rgba(245,158,11,0.16)) !important;
  box-shadow: 0 8px 32px rgba(245,158,11,0.20) !important;
  border-color: rgba(245,158,11,0.28) !important;
}
.hiro-kpi-amber .hiro-kpi-icon { color: #fbbf24 !important; }
.hiro-kpi-amber:hover {
  box-shadow: 0 14px 40px rgba(245,158,11,0.35) !important;
}

/* ─── 31. HOME — ALERT CARDS ─────────────────────────────────── */
.hiro-alert-card {
  border-radius: 14px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid transparent !important;
}
.hiro-alert-danger {
  background: rgba(127,29,29,0.35) !important;
  border-color: rgba(239,68,68,0.30) !important;
  box-shadow: 0 6px 24px rgba(239,68,68,0.15) !important;
}
.hiro-alert-warning {
  background: rgba(120,53,15,0.35) !important;
  border-color: rgba(245,158,11,0.30) !important;
  box-shadow: 0 6px 24px rgba(245,158,11,0.12) !important;
}
.hiro-alert-muted {
  background: rgba(14,31,24,0.70) !important;
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.30) !important;
}

/* ─── 32. BTN-WARNING corrigido para dark ────────────────────── */
.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border: none !important;
  color: #0a0a0a !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(245,158,11,0.30) !important;
}
.btn-warning:hover,
.btn-warning:focus {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #0a0a0a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(245,158,11,0.45) !important;
}
.btn-warning:active,
.btn.btn-warning:active:not(.btn-active),
.btn-warning.active {
  background: #d97706 !important;
  color: #0a0a0a !important;
  transform: translateY(0) !important;
}

/* ─── 33. CUSTOM OVERRIDES — BORDAS ─────────────────────────── */
/* 
   Transforma bordas tracejadas em sólidas para manter a consistência 
   com o visual Glassmorphism / SoundWave dos cards.
*/
.border-dashed,
.btn-outline-dashed {
  border-style: solid !important;
  border-width: 1px !important;
}

/* Cor padrão para elementos dashed para alinhar com var(--hiro-border) 
   dos cards, caso não possuam classe de cor específica. */
.border-dashed:not([class*="border-"]),
.btn-outline-dashed:not([class*="btn-outline-"]) {
  border-color: var(--hiro-border) !important;
}
/* ─── 34. CAMPANHAS — DETALHES ─────────────────────────────── */

/* Melhora o efeito de hover nos cards de estatísticas */
.hover-elevate-up {
  transition: all 0.3s ease !important;
}
.hover-elevate-up:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), var(--hiro-glow-neon) !important;
  border-color: var(--hiro-green-light) !important;
  background-color: var(--hiro-raised) !important;
}

/* Ajuste de contraste para itens de informação */
.border-bottom-dashed {
  border-bottom-style: dashed !important;
  border-bottom-color: var(--hiro-border) !important;
  border-bottom-width: 1px !important;
}

/* Labels e Valores na visualização de detalhes */
.min-w-150px.text-gray-500 {
  color: var(--hiro-text-muted) !important;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.text-gray-900.fw-bold.fs-6 {
  color: var(--hiro-text-primary) !important;
  font-weight: 600 !important;
}

/* Ajuste para o badge light-warning no Dark Mode */
.badge-light-warning {
  background-color: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}
