/* Output CSS for Monitoramento Parlamentar */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0b0f19;
  color: #f3f4f6;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', 'Inter', sans-serif;
}

/* Custom Interactive Brazil Map Styles */
.map-uf {
  fill: #1e293b;
  stroke: #334155;
  stroke-width: 1.2;
  stroke-linejoin: round;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.map-uf:hover {
  fill: #10b981;
  stroke: #34d399;
  stroke-width: 2;
  filter: drop-shadow(0 10px 16px rgba(16, 185, 129, 0.45));
  transform: translateY(-4px) scale(1.015);
}

.map-uf.active-uf {
  fill: #059669;
  stroke: #6ee7b7;
  stroke-width: 2.5;
  filter: drop-shadow(0 12px 20px rgba(5, 150, 105, 0.6));
  transform: translateY(-5px) scale(1.025);
}

/* Tooltip Styling */
#map-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.15s ease, transform 0.15s ease;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Glassmorphism Cards & Containers */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

/* Utility Animations */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.5); }
}

.pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Otimização de nitidez e fidelidade visual para retratos de parlamentares */
.deputado-avatar, img[src*="bandep"] {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  backface-visibility: hidden;
  filter: contrast(1.05) saturate(1.03);
}

.deputado-avatar-placeholder {
  filter: none !important;
  background-color: #f1f5f9;
}
