/* ============================================================
   楼宇税源智能分析系统 — Modern Design System
   Style: Vercel / Stripe / Linear Dashboard
   ============================================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* === CSS Reset & Variables === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core Palette */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-elevated: rgba(255, 255, 255, 0.03);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-bg-hover: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.06);

  /* Accent Colors */
  --accent-blue: #3b82f6;
  --accent-cyan: #22d3ee;
  --accent-green: #34d399;
  --accent-amber: #fbbf24;
  --accent-red: #f87171;
  --accent-purple: #a78bfa;
  --accent-pink: #f472b6;

  /* Text */
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #3b82f6;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --header-height: 56px;
  --sidebar-width: 280px;
  --drawer-width: 360px;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Background Gradient === */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(34, 211, 238, 0.06), transparent),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(167, 139, 250, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HEADER / TOP NAVIGATION
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo svg {
  width: 18px;
  height: 18px;
  color: white;
}

.header-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

#clock {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
#app-layout {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: 1fr;
  z-index: 1;
}

/* ============================================================
   LEFT SIDEBAR / FILTERS
   ============================================================ */
#sidebar {
  grid-column: 1;
  grid-row: 1;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 16px;
  gap: 16px;
}

#sidebar::-webkit-scrollbar {
  width: 3px;
}
#sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

/* Sidebar Section */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 4px;
}

.sidebar-section-title svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  transition: var(--transition-base);
  cursor: default;
}

.kpi-card:hover {
  background: var(--card-bg-hover);
  transform: scale(1.02);
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.kpi-value.blue { color: var(--accent-blue); }
.kpi-value.cyan { color: var(--accent-cyan); }
.kpi-value.amber { color: var(--accent-amber); }
.kpi-value.red { color: var(--accent-red); }
.kpi-value.green { color: var(--accent-green); }

.kpi-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Filter Controls */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding-left: 2px;
}

.filter-select {
  width: 100%;
  padding: 8px 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.filter-select:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.filter-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Metric Toggle Buttons */
.metric-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-base);
  text-align: left;
}

.metric-toggle:hover {
  background: var(--card-bg);
  color: var(--text-primary);
}

.metric-toggle.active {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}

.metric-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Divider */
.sidebar-divider {
  height: 1px;
  background: var(--card-border);
  margin: 4px 0;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
#main-content {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 24px;
  gap: 16px;
}

/* === Map Section === */
#map-section {
  flex: 1;
  min-height: 0;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background var(--transition-base);
}

#map-section:hover {
  background: var(--card-bg-hover);
}

#leaflet-map {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 1;
}

/* Override Leaflet styles for dark theme */
.leaflet-container {
  background: var(--bg-primary) !important;
  font-family: 'Inter', sans-serif !important;
}

/* Marker cluster dark theme styles */
.marker-cluster-small {
  background-color: rgba(59, 130, 246, 0.6) !important;
}
.marker-cluster-small div {
  background-color: rgba(59, 130, 246, 0.8) !important;
  color: white !important;
}

.marker-cluster-medium {
  background-color: rgba(245, 158, 11, 0.6) !important;
}
.marker-cluster-medium div {
  background-color: rgba(245, 158, 11, 0.8) !important;
  color: white !important;
}

.marker-cluster-large {
  background-color: rgba(239, 68, 68, 0.6) !important;
}
.marker-cluster-large div {
  background-color: rgba(239, 68, 68, 0.8) !important;
  color: white !important;
}

.marker-cluster {
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.marker-cluster div {
  border-radius: 50% !important;
  font-weight: 600 !important;
  text-align: center !important;
  font-family: 'Inter', sans-serif !important;
}

.marker-cluster span {
  line-height: 1 !important;
}
.leaflet-control-zoom a {
  background: rgba(15, 23, 42, 0.85) !important;
  color: var(--text-secondary) !important;
  border-color: var(--card-border) !important;
}
.leaflet-control-zoom a:hover {
  background: rgba(30, 41, 59, 0.95) !important;
  color: var(--text-primary) !important;
}
.leaflet-control-attribution {
  background: rgba(15, 23, 42, 0.6) !important;
  color: var(--text-muted) !important;
  font-size: 9px !important;
}
.leaflet-control-attribution a {
  color: var(--text-muted) !important;
}

/* Leaflet popup dark theme */
.leaflet-popup-content-wrapper {
  background: rgba(15, 23, 42, 0.95) !important;
  color: var(--text-primary) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  backdrop-filter: blur(16px);
}
.leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.95) !important;
}
.leaflet-popup-close-button {
  color: var(--text-muted) !important;
}
.leaflet-popup-content {
  margin: 14px 16px !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

/* Map Narrative (Dynamic Data Storytelling) */
.map-narrative {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 30px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 80%;
  pointer-events: none;
}

.narrative-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.narrative-icon svg {
  width: 14px;
  height: 14px;
}

.narrative-text {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.5;
  transition: opacity 0.3s;
}

.narrative-highlight {
  color: var(--accent-cyan);
  font-weight: 600;
}

.narrative-alert {
  color: var(--accent-amber);
  font-weight: 600;
}

/* Map Legend */
.map-legend {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  z-index: 1000;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.3);
}

/* Map Controls (Toggle) */
.map-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1000;
}

.map-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-provider-buttons {
  display: flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.provider-btn {
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.provider-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.provider-btn.active {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}

.map-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-base);
}

.map-toggle-label:hover {
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
}

.map-toggle-label input {
  display: none;
}

.toggle-slider {
  width: 32px;
  height: 18px;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 9px;
  position: relative;
  transition: var(--transition-base);
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition-base);
}

.map-toggle-label input:checked + .toggle-slider {
  background: rgba(59, 130, 246, 0.4);
}

.map-toggle-label input:checked + .toggle-slider::after {
  transform: translateX(14px);
  background: var(--accent-blue);
}

/* Map Counter */
.map-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  z-index: 1000;
}

.map-counter span {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* === Bottom Charts Section === */
#charts-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  flex-shrink: 0;
  height: 240px;
}

.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition-base);
}

.chart-card:hover {
  background: var(--card-bg-hover);
  transform: scale(1.02);
}

.chart-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 0;
  flex-shrink: 0;
}

.chart-card-header svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.chart-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
}

.chart-inner {
  flex: 1;
  min-height: 0;
}

/* ============================================================
   DETAIL DRAWER (Slide-in Panel)
   ============================================================ */
#detail-drawer {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  width: var(--drawer-width);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--card-border);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#detail-drawer.open {
  transform: translateX(0);
}

/* Drawer overlay */
#drawer-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

#drawer-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
}

.drawer-header h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drawer-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--card-bg);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.drawer-close:hover {
  background: var(--card-bg-hover);
  color: var(--text-primary);
}

.drawer-close svg {
  width: 16px;
  height: 16px;
}

/* Drawer Body */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-body::-webkit-scrollbar {
  width: 3px;
}
.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

/* Building Name */
.building-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

/* Tags */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.tag-hh {
  background: rgba(248, 113, 113, 0.12);
  color: var(--accent-red);
}

.tag-ll {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
}

.tag-hp {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-amber);
}

.tag-ns {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
}

.tag-mid {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
}

.tag-district {
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent-purple);
}

.tag-category {
  background: rgba(244, 114, 182, 0.12);
  color: var(--accent-pink);
}

/* Detail Metrics Grid */
.detail-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-metric-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: var(--transition-base);
}

.detail-metric-card:hover {
  background: var(--card-bg-hover);
}

.detail-metric-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.detail-metric-value {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.detail-metric-value.blue { color: var(--accent-blue); }
.detail-metric-value.cyan { color: var(--accent-cyan); }
.detail-metric-value.red { color: var(--accent-red); }
.detail-metric-value.green { color: var(--accent-green); }
.detail-metric-value.amber { color: var(--accent-amber); }

/* AI Advice Section */
.ai-section {
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 8px;
}

.ai-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ai-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.3px;
}

.ai-section-title svg {
  width: 14px;
  height: 14px;
}

.ai-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  animation: fadeSlideIn 0.4s ease-out;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-base);
}

.refresh-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.refresh-btn svg {
  width: 13px;
  height: 13px;
}

/* ============================================================
   PLACEHOLDER STATE
   ============================================================ */
.drawer-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-muted);
}

.drawer-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.3;
}

.drawer-placeholder p {
  font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 240px;
    --drawer-width: 320px;
  }
  #charts-section {
    height: 200px;
  }
}

@media (max-width: 900px) {
  #app-layout {
    grid-template-columns: 1fr;
  }
  #sidebar {
    display: none;
  }
}

/* ============================================================
   UTILITY ANIMATION CLASSES
   ============================================================ */
.fade-in {
  animation: fadeSlideIn 0.4s ease-out;
}

.scale-in {
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   TOOLTIP OVERRIDE (ECharts)
   ============================================================ */
.echarts-tooltip {
  font-family: 'Inter', sans-serif !important;
}
