/* ==========================================================================
   KisaanSahayak - Core Design System & Stylesheet
   Replicated exactly from official reference designs
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-deep: #064e3b;
  --primary-light: #10b981;
  --primary-subtle: #ecfdf5;
  --primary-border: #a7f3d0;

  --accent-red: #dc2626;
  --accent-red-subtle: #fee2e2;
  --accent-orange: #ea580c;
  --accent-orange-subtle: #ffedd5;
  --accent-yellow: #ca8a04;
  --accent-yellow-subtle: #fef9c3;
  --accent-blue: #0284c7;
  --accent-blue-subtle: #e0f2fe;

  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-dark: #0f172a;
  --bg-slate: #1e293b;

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 35px -8px rgba(0, 0, 0, 0.15);

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Surveillance Marquee Bar */
.top-surveillance-bar {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 0.45rem 1.5rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1100;
}

.surveillance-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  overflow: hidden;
}

.live-badge {
  background-color: var(--accent-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.live-pulse {
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.ticker-text {
  font-weight: 500;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surveillance-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.lang-select-box {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

.lang-select-box option {
  background: var(--bg-dark);
  color: #ffffff;
}

/* Main Navigation Header */
.main-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 33px;
  z-index: 1000;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  background-color: var(--primary-dark);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.3);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.btn-header-report {
  background-color: var(--primary-dark);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-full);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
  flex-shrink: 0;
}

.btn-header-report:hover {
  background-color: var(--primary-deep);
  transform: translateY(-1px);
}

/* Nav Pills Bar */
.nav-pills-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.nav-pills-bar::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-pill-btn {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
  background-color: transparent;
  padding: 0.38rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-pill-btn:hover {
  background-color: #f1f5f9;
  color: var(--text-dark);
}

.nav-pill-btn.active {
  background-color: #f1f5f9;
  color: var(--primary-dark);
  border-color: var(--border-medium);
  font-weight: 700;
}

.country-pill {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-right: 0.2rem;
}

/* Badges inside Nav */
.pill-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.badge-red {
  background-color: var(--accent-red-subtle);
  color: var(--accent-red);
}

.badge-blue {
  background-color: var(--accent-blue-subtle);
  color: var(--accent-blue);
}

.badge-green {
  background-color: var(--primary-subtle);
  color: var(--primary-dark);
}

/* Page Navigation Routing System */
.app-viewport {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  flex-grow: 1;
}

.page-view {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.page-view.active-view {
  display: block;
}

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

/* Breadcrumbs / Hub Back Control */
.view-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.btn-back-hub {
  background: var(--bg-surface);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-back-hub:hover {
  background-color: #f1f5f9;
  border-color: var(--border-medium);
  transform: translateX(-2px);
}

/* Section Header Styles */
.section-header-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-header-info {
  max-width: 850px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.section-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-dark);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  border-color: var(--border-medium);
}

/* ==========================================================================
   PAGE 0: MAIN DASHBOARD NAVIGATION HUB
   ========================================================================== */
.hub-hero-banner {
  background: linear-gradient(135deg, #064e3b 0%, #047857 60%, #059669 100%);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.5rem;
  color: #ffffff;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hub-hero-banner::after {
  content: '🌾';
  font-size: 10rem;
  position: absolute;
  right: -20px;
  bottom: -40px;
  opacity: 0.12;
  pointer-events: none;
}

.hub-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.hub-hero-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.hub-hero-subtitle {
  font-size: 1rem;
  opacity: 0.92;
  max-width: 800px;
}

/* Hub Service Grid */
.hub-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hub-service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.hub-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.hub-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hub-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.icon-red { background: var(--accent-red-subtle); color: var(--accent-red); }
.icon-green { background: var(--primary-subtle); color: var(--primary-dark); }
.icon-blue { background: var(--accent-blue-subtle); color: var(--accent-blue); }
.icon-yellow { background: var(--accent-yellow-subtle); color: var(--accent-yellow); }
.icon-purple { background: #f3e8ff; color: #7e22ce; }

.hub-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.hub-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.hub-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-top: auto;
}

.hub-card-action-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* KPI Summary Cards Grid */
.kpi-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.kpi-summary-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kpi-card-red { border-left: 4px solid var(--accent-red); }
.kpi-card-orange { border-left: 4px solid var(--accent-orange); }
.kpi-card-yellow { border-left: 4px solid var(--accent-yellow); }
.kpi-card-green { border-left: 4px solid var(--primary); }

.kpi-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.kpi-num {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
}

.kpi-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   PAGE 1: DISEASE OUTBREAK MAP & DOSSIER
   ========================================================================== */
.filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  background-color: var(--bg-surface);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.filter-pills-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-pill {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-pill.active {
  background-color: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

.form-select-sm {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
}

/* Map & Dossier Split Layout */
.map-dossier-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .map-dossier-layout {
    grid-template-columns: 1fr;
  }
}

.map-container-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 540px;
  box-shadow: var(--shadow-sm);
}

#india-leaflet-map {
  width: 100%;
  height: 100%;
}

/* Floating Map Legend */
.map-floating-legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  z-index: 990;
  box-shadow: var(--shadow-md);
  max-width: 250px;
}

.legend-header {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  color: var(--text-body);
  font-weight: 600;
}

.legend-item:last-child {
  margin-bottom: 0;
}

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

/* Outbreak Dossier Right Panel */
.outbreak-dossier-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 540px;
}

.dossier-header-bar {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.dossier-title-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dossier-severity-badge {
  background: var(--accent-red-subtle);
  color: var(--accent-red);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.dossier-body-content {
  padding: 1.25rem;
  overflow-y: auto;
  flex-grow: 1;
  font-size: 0.88rem;
}

.dossier-section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin: 1.15rem 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.title-bio { color: var(--primary-dark); }
.title-chem { color: #0284c7; }

.dossier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dossier-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.45;
  color: var(--text-body);
}

.dossier-list li span.bullet {
  font-weight: 800;
}

.bullet-bio { color: var(--primary); }
.bullet-chem { color: var(--accent-orange); }

.nodal-advisory-box {
  background-color: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 1.25rem;
}

.nodal-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.nodal-hotline {
  font-size: 0.82rem;
  color: var(--text-body);
}

.dossier-actions-footer {
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-broadcast-warning {
  background-color: var(--primary-dark);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem;
  border-radius: var(--radius-full);
  border: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-broadcast-warning:hover {
  background-color: var(--primary-deep);
}

.btn-download-bulletin {
  background-color: var(--bg-surface);
  color: var(--text-dark);
  border: 1px solid var(--border-medium);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem;
  border-radius: var(--radius-full);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-download-bulletin:hover {
  background-color: #f1f5f9;
}

/* Hotspots Grid */
.hotspots-section-header {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hotspots-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
}

.hotspot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.hotspot-card.selected-hotspot {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-border), var(--shadow-md);
}

.hotspot-card-header {
  margin-bottom: 0.75rem;
}

.hotspot-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.hotspot-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hotspot-metrics-row {
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.velocity-text-severe { color: var(--accent-red); font-weight: 700; }
.velocity-text-high { color: var(--accent-orange); font-weight: 700; }

.hotspot-symptoms-snippet {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.hotspot-advisory-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.btn-open-dossier {
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.15s ease;
}

.btn-open-dossier:hover {
  background: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

/* ==========================================================================
   PAGE 2: AI CROP DOCTOR (INTEGRATED & DEDICATED)
   ========================================================================== */
.crop-doctor-workbench {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .crop-doctor-workbench {
    grid-template-columns: 1fr;
  }
}

.doctor-panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.panel-subheading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Upload Dropzone */
.image-dropzone-box {
  border: 2px dashed #10b981;
  background-color: #f0fdf4;
  border-radius: var(--radius-md);
  padding: 2.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

.image-dropzone-box:hover, .image-dropzone-box.dragover {
  background-color: #dcfce7;
  border-color: var(--primary-dark);
}

.dropzone-camera-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.dropzone-prompt {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 0.25rem;
}

.dropzone-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.btn-choose-file {
  background-color: var(--primary-dark);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.2);
}

.uploaded-preview-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  display: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.uploaded-preview-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.btn-remove-image {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

/* Presets Grid */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.preset-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preset-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.preset-card.active-preset {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 0 1.5px var(--primary);
}

.preset-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.preset-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.preset-crop {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.preset-match-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  background: #dcfce7;
  color: var(--primary-deep);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

/* Doctor Diagnosis Empty State */
.diagnostic-empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.empty-state-desc {
  font-size: 0.88rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Doctor Diagnosis Active Result */
.diagnostic-result-container {
  display: none;
}

.diagnostic-result-container.active-result {
  display: block;
}

.diagnostic-header-card {
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.diag-pathogen-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.2;
}

.diag-scientific-name {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.diag-confidence-pill {
  background: var(--primary-dark);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.diag-section-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 1.25rem 0 0.5rem 0;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.spray-calc-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-top: 1.25rem;
}

.calc-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.calc-stat-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  text-align: center;
}

.calc-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.calc-stat-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 0.15rem;
}

/* ==========================================================================
   PAGE 3: WEATHER & AGRO-ADVISORY ENGINE
   ========================================================================== */
.weather-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.weather-hero-card {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.weather-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.weather-temp-badge {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-temp-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.hero-condition-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.hero-feels-like {
  font-size: 0.88rem;
  opacity: 0.85;
}

.weather-metrics-tiles-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .weather-metrics-tiles-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.weather-tile {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  text-align: center;
}

.weather-tile-icon {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.weather-tile-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.weather-tile-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Weather Advisory Cards */
.weather-advisories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.weather-adv-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.adv-border-info { border-left: 4px solid var(--accent-blue); }
.adv-border-warning { border-left: 4px solid var(--accent-red); }
.adv-border-success { border-left: 4px solid var(--primary); }
.adv-border-caution { border-left: 4px solid var(--accent-orange); }

.adv-badge {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.adv-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.adv-desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.adv-action-box {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: var(--accent-red);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: auto;
}

/* 7-Day Forecast Grid */
.forecast-container-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.forecast-days-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

@media (max-width: 860px) {
  .forecast-days-row {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}

.forecast-day-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: all 0.2s ease;
}

.forecast-day-card.active-forecast-day {
  border-color: var(--primary);
  box-shadow: 0 0 0 1.5px var(--primary);
}

.forecast-day-name {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.forecast-day-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.forecast-day-temps {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.forecast-day-temps span {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.forecast-day-rain {
  font-size: 0.75rem;
  color: var(--accent-blue);
  font-weight: 600;
}

/* ==========================================================================
   PAGE 4: LIVE MANDI PRICES & MARKET INTELLIGENCE
   ========================================================================== */
.mandi-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
}

.mandi-search-input {
  flex-grow: 1;
  min-width: 250px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  outline: none;
}

.mandi-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
}

.mandi-commodity-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mandi-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.category-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.price-trend-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.trend-up { background: #dcfce7; color: var(--primary-dark); }
.trend-down { background: #fee2e2; color: var(--accent-red); }
.trend-neutral { background: #f1f5f9; color: var(--text-muted); }

.mandi-commodity-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}

.mandi-location-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

.modal-price-display {
  margin-bottom: 0.85rem;
}

.modal-price-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.modal-price-unit {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.min-max-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-body);
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
  padding: 0.5rem 0;
  margin-bottom: 0.85rem;
}

.variety-arrivals-row {
  font-size: 0.82rem;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}

.msp-status-pill {
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.msp-status-commercial {
  background: #f1f5f9;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.mandi-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
  margin-top: auto;
}

.sync-time-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PAGE 5: NGO & GOVERNMENT SUPPORT HUB
   ========================================================================== */
.ngo-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.ngo-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ngo-tab-btn:hover {
  background: #f1f5f9;
}

.ngo-tab-btn.active-tab {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-dark);
}

.ngos-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .ngos-cards-grid {
    grid-template-columns: 1fr;
  }
}

.ngo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ngo-header-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.ngo-initial-box {
  width: 48px;
  height: 48px;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ngo-title-info {
  flex-grow: 1;
}

.ngo-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ngo-verified-badge {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.ngo-rating-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.ngo-desc-text {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.ngo-address-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.ngo-contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.ngo-leadership-strip {
  background: #f0fdf4;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  color: var(--primary-deep);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ngo-services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.ngo-services-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-body);
}

.ngo-grant-alert {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.ngo-action-buttons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .ngo-action-buttons-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.btn-ngo-action {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-dark);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-ngo-action:hover {
  background: #f1f5f9;
}

.btn-ngo-connect {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-dark);
}

.btn-ngo-connect:hover {
  background: var(--primary-deep);
}

.btn-ngo-whatsapp {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

/* ==========================================================================
   FLOATING WIDGETS
   ========================================================================== */
/* Bottom-Left 24x7 Kisan Call Centre */
.floating-kisan-call {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-xl);
  z-index: 1050;
  cursor: pointer;
  transition: all 0.2s ease;
}

.floating-kisan-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.call-icon-circle {
  width: 36px;
  height: 36px;
  background: #059669;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.call-center-info {
  line-height: 1.15;
}

.call-center-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.call-toll-badge {
  background: #dcfce7;
  color: #047857;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.call-number {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #047857;
}

.btn-dial-quick {
  background: #059669;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
}

/* Bottom-Right Kisan AI Saathi */
.floating-ai-saathi-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #047857;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 25px rgba(4, 120, 87, 0.4);
  cursor: pointer;
  z-index: 1050;
  transition: all 0.2s ease;
}

.floating-ai-saathi-btn:hover {
  background: #064e3b;
  transform: translateY(-2px);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 1.5rem;
}

.modal-backdrop.modal-active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-dialog-box {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-dialog-header {
  padding: 1.5rem 1.75rem 1rem 1.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.modal-dialog-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-dialog-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-dialog-body {
  padding: 1.5rem 1.75rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 540px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group-field label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-input-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  outline: none;
}

.form-input-text:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.form-textarea {
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  outline: none;
  resize: vertical;
  min-height: 90px;
}

.modal-dialog-footer {
  padding: 1rem 1.75rem 1.5rem 1.75rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-publish-danger {
  background-color: var(--accent-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-publish-danger:hover {
  background-color: #b91c1c;
}

/* Chat Drawer for Kisan AI Saathi */
.chat-drawer {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1150;
}

.chat-drawer.drawer-open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.chat-drawer-header {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages-body {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  line-height: 1.4;
}

.msg-ai {
  background: #f1f5f9;
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.msg-user {
  background: var(--primary-dark);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-prompts-row {
  padding: 0.5rem 0.85rem;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  border-top: 1px solid var(--border-light);
  background: #f8fafc;
}

.prompt-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
}

.chat-input-bar {
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.chat-input-field {
  flex-grow: 1;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  outline: none;
}

.btn-send-chat {
  background: var(--primary-dark);
  color: #ffffff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

/* Global Footer */
.app-global-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.footer-helplines-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}
