/* Design System - Projeto Rede Agro (NAPI Prosolo) */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --secondary: #3b82f6;
  --accent: #f59e0b;
  --danger: #ef4444;
  --bg-dark: #0f172a;
  --card-dark: #1e293b;
  --card-border: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0b1120;
  color: #f1f5f9;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphism Cards */
.agro-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
}

.agro-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

/* Glow Effects */
.glow-emerald {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}
.glow-blue {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Navigation Tabs Active State */
.nav-tab {
  transition: all 0.2s ease;
  position: relative;
}
.nav-tab.active {
  color: #10b981;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

/* Map Container */
#map-container {
  min-height: 520px;
  border-radius: 0.75rem;
  z-index: 10;
}

/* KPI Badge */
.kpi-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Chart Canvas Fixes */
.chart-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.text-2xs {
  font-size: 0.6875rem;
  line-height: 0.95rem;
}

