/* ==========================================================================
   CRM SAÚDE V3.0 - ULTRA PREMIUM GLASSMORPHISM DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --glass-bg: rgba(15, 23, 42, 0.45);
  --glass-bg-hover: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.22);
  --glass-blur: 16px;
  --glass-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.45);
  --glass-text-shadow: none;
  --bg-overlay: rgba(3, 7, 18, 0.40);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f8fafc;
  min-height: 100vh;
  background-color: #030712;
  overflow-x: hidden;
}

/* Background image overlay container */
.bg-nature-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../images/bg-nature.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: filter 0.3s ease;
}

.bg-nature-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: brightness(0.85) contrast(1.05);
  transition: background 0.3s ease;
}

/* Core Glassmorphism Card Style */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.55);
}

/* Header & Sidebar specific glass styles */
.glass-header {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-sidebar {
  background: rgba(15, 23, 42, 0.50);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Glass Inputs & Selects */
.glass-input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.glass-input::placeholder {
  color: rgba(226, 232, 240, 0.5) !important;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important;
  outline: none !important;
}

.glass-select {
  background: rgba(15, 23, 42, 0.90) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.glass-select option {
  background: #0f172a !important;
  color: #ffffff !important;
}

/* Glass Buttons */
.glass-btn {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.glass-btn-primary {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.85), rgba(99, 102, 241, 0.85)) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4) !important;
}

.glass-btn-primary:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 1), rgba(99, 102, 241, 1)) !important;
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.6) !important;
  transform: translateY(-1px);
}

/* Glass Modal Overlay & Card */
.glass-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.glass-modal-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.8);
  border-radius: 1.5rem;
  width: 83.333333% !important;
  max-width: 83.333333% !important;
  max-height: 90vh;
  overflow-y: auto;
}

/* Navigation items (Sidebar links full-width, clean flex rows) */
.nav-glass-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  gap: 0.75rem !important;
  padding: 0.625rem 0.875rem !important;
  border-radius: 0.75rem !important;
  color: rgba(226, 232, 240, 0.8) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid transparent !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.nav-glass-item:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateX(3px) !important;
}

.nav-glass-item.active {
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.15)) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: inset 3.5px 0 0 0 #38bdf8, 0 4px 16px rgba(14, 165, 233, 0.25) !important;
}

.nav-glass-item.active i {
  color: #38bdf8 !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

.live-dot {
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.glass-text {
  text-shadow: var(--glass-text-shadow);
}

/* ==========================================================================
   THEMES & ACCENT STYLES
   ========================================================================== */
/* 1. Midnight (Glassmorphism + Wallpaper) */
body.theme-midnight {
  --glass-bg: rgba(15, 23, 42, 0.55);
  --glass-bg-hover: rgba(30, 41, 59, 0.70);
  --glass-border: rgba(56, 189, 248, 0.20);
  --glass-border-hover: rgba(56, 189, 248, 0.40);
  --theme-accent: #38bdf8;
  --theme-glow: rgba(56, 189, 248, 0.40);
}

body.theme-midnight .bg-nature-container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 2. Escuro (IDE Clean Solid Dark Mode - Sem Imagem de Fundo) */
body.theme-escuro {
  background-color: #0b0f19 !important;
  background-image: none !important;
  color: #f1f5f9 !important;
  --glass-bg: #151c2c;
  --glass-bg-hover: #1e293b;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(56, 189, 248, 0.30);
  --theme-accent: #38bdf8;
  --theme-glow: rgba(56, 189, 248, 0.25);
}

body.theme-escuro .bg-nature-container,
body.theme-escuro .bg-nature-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

body.theme-escuro .glass-panel,
body.theme-escuro .glass-modal-card,
body.theme-escuro .glass-modal {
  background-color: #151c2c !important;
  background: #151c2c !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 3. Claro (Corporativo Suave Solid Light Mode - High Contrast & No Dark Grays) */
body.theme-claro {
  background-color: #e2e8f0 !important;
  background-image: none !important;
  color: #0f172a !important;
  --glass-bg: #ffffff;
  --glass-bg-hover: #f1f5f9;
  --glass-border: #cbd5e1;
  --glass-border-hover: #94a3b8;
  --theme-accent: #0284c7;
  --theme-glow: rgba(2, 132, 199, 0.20);
}

body.theme-claro .bg-nature-container,
body.theme-claro .bg-nature-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

body.theme-claro .glass-panel,
body.theme-claro .glass-modal-card,
body.theme-claro .glass-modal,
body.theme-claro .glass-sidebar {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Text & Typography Overrides in Light Theme */
body.theme-claro .glass-text,
body.theme-claro h1,
body.theme-claro h2,
body.theme-claro h3,
body.theme-claro h4,
body.theme-claro h5,
body.theme-claro h6 {
  color: #0f172a !important;
  text-shadow: none !important;
}

body.theme-claro .text-white:not(.bg-emerald-600 *):not(.bg-emerald-500 *):not(.bg-purple-600 *):not(.bg-sky-600 *):not(.glass-btn-primary *) {
  color: #0f172a !important;
}

/* Ensure WhatsApp buttons and filled colored action buttons ALWAYS have crisp white text */
body.theme-claro .bg-emerald-600,
body.theme-claro .bg-emerald-500,
body.theme-claro .bg-green-600,
body.theme-claro .bg-purple-600,
body.theme-claro .bg-sky-600,
body.theme-claro .bg-indigo-600,
body.theme-claro .glass-btn-primary,
body.theme-claro button[onclick*="wa.me"],
body.theme-claro button[onclick*="openWhatsApp"],
body.theme-claro .bg-emerald-600 *,
body.theme-claro .bg-emerald-500 *,
body.theme-claro .bg-purple-600 *,
body.theme-claro .bg-sky-600 *,
body.theme-claro .glass-btn-primary * {
  color: #ffffff !important;
  text-shadow: none !important;
}

body.theme-claro .text-slate-100,
body.theme-claro .text-slate-200,
body.theme-claro .text-slate-300,
body.theme-claro .text-slate-400 {
  color: #334155 !important;
}

body.theme-claro .text-sky-300,
body.theme-claro .text-sky-200 {
  color: #0284c7 !important;
}

body.theme-claro .text-purple-300,
body.theme-claro .text-purple-200 {
  color: #7e22ce !important;
}

body.theme-claro .text-emerald-300,
body.theme-claro .text-emerald-200 {
  color: #047857 !important;
}

body.theme-claro .text-amber-300,
body.theme-claro .text-amber-200 {
  color: #b45309 !important;
}

/* Remove dark gray session bars & wrappers */
body.theme-claro #pipelineFilterGroup,
body.theme-claro #pipelineViewSwitcher,
body.theme-claro #finFilterGroup,
body.theme-claro [class*="bg-slate-800"],
body.theme-claro [class*="bg-slate-900"],
body.theme-claro [class*="bg-slate-950"],
body.theme-claro .bg-slate-800,
body.theme-claro .bg-slate-900,
body.theme-claro .bg-slate-950,
body.theme-claro .bg-slate-800\/80,
body.theme-claro .bg-slate-900\/80,
body.theme-claro .bg-slate-900\/70,
body.theme-claro .bg-slate-900\/60,
body.theme-claro .bg-slate-900\/50,
body.theme-claro .bg-slate-900\/40,
body.theme-claro .bg-slate-950\/80 {
  background-color: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Specific Balloon 1: "Sem WhatsApp" button balloon across all themes */
button[title*="Sem WhatsApp"],
button.cursor-not-allowed {
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
}

button[title*="Sem WhatsApp"] i,
button[title*="Sem WhatsApp"] span,
button.cursor-not-allowed i,
button.cursor-not-allowed span {
  color: #94a3b8 !important;
}

body.theme-claro button[title*="Sem WhatsApp"],
body.theme-claro button.bg-slate-800\/80,
body.theme-claro button.cursor-not-allowed {
  background-color: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
  opacity: 1 !important;
}

body.theme-claro button[title*="Sem WhatsApp"] i,
body.theme-claro button[title*="Sem WhatsApp"] span,
body.theme-claro button.cursor-not-allowed i,
body.theme-claro button.cursor-not-allowed span {
  color: #475569 !important;
}

/* Specific Balloon 2: Chat CRM Hub AI & User Speech Balloons */
body.theme-claro #chatMessages .bg-slate-800\/80,
body.theme-claro #chatMessages .bg-slate-800,
body.theme-claro #chatMessages .bg-slate-900\/60,
body.theme-claro #chatMessages [class*="rounded-2xl"] {
  background-color: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-claro #chatMessages .bg-slate-800\/80 *,
body.theme-claro #chatMessages .bg-slate-800 *,
body.theme-claro #chatMessages .bg-slate-900\/60 * {
  color: #0f172a !important;
}

/* Filter Pills & Buttons in Light Theme */
body.theme-claro .pipeline-filter-btn,
body.theme-claro .fin-filter-btn {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 700 !important;
}

body.theme-claro .pipeline-filter-btn:hover,
body.theme-claro .fin-filter-btn:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-claro .pipeline-filter-btn.bg-white\/20,
body.theme-claro .pipeline-filter-btn.bg-sky-500\/30,
body.theme-claro .fin-filter-btn.bg-white\/20 {
  background-color: #0284c7 !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
}

/* Primary Button (+ Novo Lead) in Light Theme */
body.theme-claro .glass-btn-primary,
body.theme-claro .bg-gradient-to-r.from-sky-500 {
  background: linear-gradient(135deg, #0284c7, #4338ca) !important;
  color: #ffffff !important;
}

body.theme-claro .glass-btn-primary span,
body.theme-claro .glass-btn-primary i {
  color: #ffffff !important;
}

/* Inputs & Selects in Light Theme */
body.theme-claro .glass-input,
body.theme-claro .glass-select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body.theme-claro .glass-input::placeholder {
  color: #64748b !important;
}

/* Navigation Items & Badges */
body.theme-claro .nav-glass-item {
  color: #334155 !important;
}

body.theme-claro .nav-glass-item:hover,
body.theme-claro .nav-glass-item.active {
  background-color: #e2e8f0 !important;
  color: #0284c7 !important;
}

#sidebarLeadsBadge,
#dashPipelineCount,
#sidebarFinanceiroBadge,
#sidebarOperadorasBadge {
  font-weight: 600 !important;
}

body.theme-claro #sidebarLeadsBadge,
body.theme-claro #dashPipelineCount,
body.theme-claro #sidebarFinanceiroBadge,
body.theme-claro #sidebarOperadorasBadge {
  font-weight: 600 !important;
}

body.theme-claro .bg-sky-500\/30 {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
}

body.theme-claro .bg-amber-500\/30 {
  background-color: #fef3c7 !important;
  color: #b45309 !important;
}

body.theme-claro .bg-emerald-500\/30 {
  background-color: #d1fae5 !important;
  color: #047857 !important;
}

/* Cards & Kanban in Light Theme */
body.theme-claro .kanban-col,
body.theme-claro .kanban-card,
body.theme-claro .pipeline-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Table Overrides */
body.theme-claro table th {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}

body.theme-claro table td {
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

/* Glow Card Animation */
.glow-card {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-card:hover {
  transform: translateY(-3px);
  border-color: var(--theme-accent, rgba(56, 189, 248, 0.5)) !important;
  box-shadow: 0 12px 30px -5px var(--theme-glow, rgba(56, 189, 248, 0.3)) !important;
}

/* KANBAN BOARD STYLES */
.kanban-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

@media (max-width: 1024px) {
  .kanban-grid {
    grid-template-columns: repeat(5, minmax(240px, 1fr));
  }
}

.kanban-col {
  background: rgba(15, 23, 42, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 380px;
}

.kanban-card {
  background: rgba(30, 41, 59, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.875rem;
  padding: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.kanban-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* MODAL TABS */
.lead-modal-tab {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.75rem;
  color: rgba(226, 232, 240, 0.7);
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.lead-modal-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.lead-modal-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.2));
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

/* REMOVE ALL TEXT SHADOWS FOR CLEAN CRISP TYPOGRAPHY */
*,
*:before,
*:after,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
label,
button,
input,
select,
textarea,
td,
th,
.glass-text {
  text-shadow: none !important;
}

/* ----------------------------------------------------------------------------
   PONTO CRIVELLO: SISTEMA DE PONTUAÇÃO & AVALIAÇÃO DA MARCA (ADMIN)
   ---------------------------------------------------------------------------- */
.crivello-dot {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  background: linear-gradient(135deg, #2fcfff 0%, #2563eb 50%, #0066ff 100%) !important;
  box-shadow: 0 1.5px 4px rgba(37, 99, 235, 0.35) !important;
  position: relative !important;
  flex-shrink: 0 !important;
  line-height: 0 !important;
  box-sizing: border-box !important;
}

.crivello-dot::after {
  content: '' !important;
  display: block !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

/* Variações de Tamanho Rigorosamente Circulares */
.crivello-dot-xs {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
}

.crivello-dot-xs::after {
  width: 4px !important;
  height: 4px !important;
  min-width: 4px !important;
  min-height: 4px !important;
}

.crivello-dot-sm {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}

.crivello-dot-sm::after {
  width: 5px !important;
  height: 5px !important;
  min-width: 5px !important;
  min-height: 5px !important;
}

.crivello-dot-md {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

.crivello-dot-md::after {
  width: 6px !important;
  height: 6px !important;
  min-width: 6px !important;
  min-height: 6px !important;
}

.crivello-dot-lg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

.crivello-dot-lg::after {
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  min-height: 8px !important;
}

.crivello-dot-empty {
  background: #334155 !important;
  box-shadow: none !important;
}

.crivello-dot-empty::after {
  background-color: #64748b !important;
}

/* BADGES REDE CREDENCIADA (Hospitais e Laboratórios) */
.badge-rede-hosp,
.badge-rede-lab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.25;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.badge-rede-hosp {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.badge-rede-hosp:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(52, 211, 153, 0.6);
  color: #a7f3d0;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.badge-rede-lab {
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #2dd4bf;
}

.badge-rede-lab:hover {
  background: rgba(20, 184, 166, 0.28);
  border-color: rgba(45, 212, 191, 0.6);
  color: #5eead4;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(20, 184, 166, 0.25);
}

/* Light Theme Overrides (High-contrast, elegant soft pills) */
body.theme-claro .badge-rede-hosp {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08) !important;
}

body.theme-claro .badge-rede-hosp i {
  color: #059669 !important;
}

body.theme-claro .badge-rede-hosp:hover {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
  color: #047857 !important;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.15) !important;
}

body.theme-claro .badge-rede-lab {
  background: #f0fdfa !important;
  border: 1px solid #99f6e4 !important;
  color: #0f766e !important;
  box-shadow: 0 1px 2px rgba(20, 184, 166, 0.08) !important;
}

body.theme-claro .badge-rede-lab i {
  color: #0d9488 !important;
}

body.theme-claro .badge-rede-lab:hover {
  background: #ccfbf1 !important;
  border-color: #5eead4 !important;
  color: #115e59 !important;
  box-shadow: 0 2px 5px rgba(20, 184, 166, 0.15) !important;
}