@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

/* ==========================================================================
   MAHARASHTRA GRAM PANCHAYAT PORTAL - GOVERNMENT OF MAHARASHTRA STYLING
   Compliant with Guidelines for Indian Government Websites (GIGW 3.0)
   Cohesive Typography: Poppins Font Family
   ========================================================================== */

:root {
  --gov-navy: #081c3b;
  --gov-navy-light: #0d2852;
  --gov-blue: #004085;
  --gov-blue-light: #e8f1fa;
  --gov-saffron: #f37021;
  --gov-saffron-light: #fff3e0;
  --gov-green: #046a38;
  --gov-green-light: #e8f5e9;
  --gov-gold: #d4af37;
  --gov-red: #c82333;
  --gov-text: #1a1a1a;
  --gov-bg: #f8fafc;
  --gov-card: #ffffff;
  --gov-border: #e2e8f0;
}

/* Base Body & Universal Poppins Typography */
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, .nav-link-btn, .badge-gov {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body {
  color: var(--gov-text);
  background-color: var(--gov-bg);
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Government Tricolor Top Ribbon */
.tricolor-stripe {
  height: 4px;
  background: linear-gradient(90deg, #ff9933 0%, #ff9933 33.33%, #ffffff 33.33%, #ffffff 66.66%, #138808 66.66%, #138808 100%);
  width: 100%;
}

/* High Contrast Accessibility Mode */
body.high-contrast {
  background-color: #000000 !important;
  color: #ffff00 !important;
}

body.high-contrast * {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
  box-shadow: none !important;
}

body.high-contrast a,
body.high-contrast button {
  color: #00ffff !important;
  text-decoration: underline !important;
}

body.high-contrast .nav-link-btn {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border: 1px solid #ffff00 !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Government Cards & Borders */
.gov-card {
  background: var(--gov-card);
  border: 1px solid var(--gov-border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gov-card:hover {
  box-shadow: 0 10px 25px -5px rgba(8, 28, 59, 0.08), 0 8px 10px -6px rgba(8, 28, 59, 0.04);
  transform: translateY(-2px);
}

/* Single-Line Navigation Items */
.nav-link-btn {
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
  border-radius: 6px;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nav-link-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-link-btn.active {
  background-color: #f59e0b;
  color: #0f172a !important;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Official Badges */
.badge-gov {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-saffron {
  background-color: #fff3e0;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-green {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-blue {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* GIS Nodes hover glow */
.gis-pin {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gis-pin:hover {
  transform: scale(1.25);
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.9));
}

/* Pulse indicator animation */
.pulse-dot {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.15);
  }
}

/* Executive Dignitary Portrait Ring */
.dignitary-avatar {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Official Form 9 Tax Receipt Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #official-tax-receipt, #official-tax-receipt * {
    visibility: visible;
  }
  #official-tax-receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
  }
}

/* ==========================================================================
   DIGNITARY & HIERARCHY (पदसोपान रचना) STYLING
   ========================================================================== */
.dignitary-card {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.dignitary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(8, 28, 59, 0.12), 0 4px 8px -4px rgba(8, 28, 59, 0.06);
}

.dignitary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.dignitary-card.cabinet::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.dignitary-card.administration::before {
  background: linear-gradient(90deg, #0284c7, #0369a1);
}

.dignitary-card.local::before {
  background: linear-gradient(90deg, #059669, #047857);
}

/* Organogram Tree Styling */
.hierarchy-tier-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all 0.2s ease;
}

.hierarchy-tier-card:hover {
  border-color: #0284c7;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
}

.hierarchy-connector-vertical {
  width: 2px;
  background: repeating-linear-gradient(to bottom, #94a3b8 0, #94a3b8 4px, transparent 4px, transparent 8px);
  margin: 0 auto;
}

.badge-wing-elected {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
  font-weight: 700;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-wing-admin {
  background-color: #f0f9ff;
  color: #0369a1;
  border: 1px solid #e0f2fe;
  font-weight: 700;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Star Rating Widget */
.star-btn {
  font-size: 1.5rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.star-btn:hover,
.star-btn.active {
  color: #f59e0b;
  transform: scale(1.15);
}

/* Flagship Cards */
.flagship-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.flagship-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(8, 28, 59, 0.1);
}

/* Sitemap Hierarchy List */
.sitemap-tree-item {
  position: relative;
  padding-left: 1rem;
}

.sitemap-tree-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.5rem;
  height: 1px;
  background-color: #cbd5e1;
}

/* ==========================================================================
   OFFICIAL SOCIAL MEDIA INTEGRATION (फेसबुक व इन्स्टाग्राम जोडणी)
   ========================================================================== */
.social-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
}

.social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(8, 28, 59, 0.1);
}

.social-btn-fb {
  background-color: #1877f2;
  color: #ffffff;
  transition: background-color 0.15s ease;
}

.social-btn-fb:hover {
  background-color: #0c63d4;
}

.social-btn-insta {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.social-btn-insta:hover {
  filter: brightness(1.1);
}

.social-tab-btn {
  transition: all 0.15s ease;
}

.social-badge-verified {
  background-color: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

/* ==========================================================================
   BEFORE & AFTER TRANSFORMATION SLIDER (पूर्वी आणि नंतर गॅलरी)
   ========================================================================== */
.before-after-box {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  user-select: none;
}

.before-after-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  cursor: ew-resize;
  z-index: 20;
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #081c3b;
  border: 3px solid #ffffff;
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ==========================================================================
   CALENDAR & EVENT STYLING (इंटरअॅक्टिव्ह कॅलेंडर)
   ========================================================================== */
.calendar-day-box {
  min-height: 85px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.calendar-day-box:hover {
  background-color: #f8fafc;
}

.calendar-day-box.has-event {
  border-color: #f59e0b;
  background-color: #fffbeb;
}

/* ==========================================================================
   PLEDGE TRACKER & PROGRESS METER (संकल्प ट्रॅकर व प्रगती मीटर)
   ========================================================================== */
.pledge-item {
  transition: all 0.2s ease;
}

.pledge-item:hover {
  transform: translateX(4px);
}

.progress-glow {
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   WEATHER WIDGET (लाईव्ह हवामान विजेट)
   ========================================================================== */
.weather-card {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
}

/* Active Nav Link Marker */
.nav-active-pill {
  background-color: #f59e0b !important;
  color: #020617 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

/* ==========================================================================
   RUPEE BREAKDOWN & BUDGET VISUALIZER (आपला रुपया कुठे जातो)
   ========================================================================== */
.rupee-coin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fef08a, #ca8a04);
  border: 2px solid #a16207;
  color: #713f12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: monospace;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.budget-bar-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.budget-bar-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   TALENT DIRECTORY & SERVICE CARDS
   ========================================================================== */
.talent-card {
  transition: all 0.2s ease;
}

.talent-card:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
}

/* Timeline steps */
.timeline-step.active .timeline-dot {
  background-color: #059669;
  border-color: #10b981;
  color: white;
}

/* ==========================================================================
   MODULES 11-16 EXTENSIONS: ENVIRONMENT, GALLERY, DASHBOARD & YOUTH
   ========================================================================== */
.green-score-card {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: #ffffff;
}

.tree-card-glow {
  transition: all 0.25s ease;
}

.tree-card-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.25);
  border-color: #10b981;
}

.media-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.media-thumbnail img {
  transition: transform 0.3s ease;
}

.media-thumbnail:hover img {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 59, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.media-thumbnail:hover .video-play-overlay {
  background: rgba(8, 28, 59, 0.25);
}

.play-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f59e0b;
  color: #081c3b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.media-thumbnail:hover .play-circle-btn {
  transform: scale(1.15);
}

/* Escalation Matrix tier cards */
.escalation-tier {
  border-left: 4px solid #cbd5e1;
  transition: all 0.2s ease;
}

.escalation-tier.l1 {
  border-left-color: #0284c7;
}

.escalation-tier.l2 {
  border-left-color: #f59e0b;
}

.escalation-tier.l3 {
  border-left-color: #dc2626;
}

/* Dashboard comparative bar */
.ward-bar-track {
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.ward-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}





/* ==========================================================================
   MOBILE & ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */
@media (max-width: 1024px) {
  body {
    padding-bottom: 64px; /* Clearance for sticky bottom mobile nav */
  }
}

#mobile-menu-drawer {
  transition: opacity 0.25s ease-in-out;
}

#mobile-menu-drawer.hidden {
  display: none;
}

.mobile-nav-link {
  transition: all 0.2s ease;
  font-weight: 500;
}

.mobile-nav-link:hover {
  background-color: #1e293b;
  color: #fbbf24;
  padding-left: 1rem;
}

.mobile-nav-link.active {
  background-color: #f59e0b;
  color: #0f172a !important;
  font-weight: 800;
}

/* Enhanced High Contrast Mode */
.high-contrast {
  background-color: #000000 !important;
  color: #ffff00 !important;
}

.high-contrast header,
.high-contrast nav,
.high-contrast footer,
.high-contrast section,
.high-contrast div:not(.tricolor-stripe) {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

.high-contrast a,
.high-contrast button {
  color: #00ffff !important;
}

.high-contrast .nav-active-pill,
.high-contrast .mobile-nav-link.active {
  background-color: #ffff00 !important;
  color: #000000 !important;
}

/* ==========================================================================
   INTERACTIVE HERO BANNER CAROUSEL (इंटरअॅक्टिव्ह हिरो बॅनर)
   ========================================================================== */
.hero-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #081c3b;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.02);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
  position: relative;
}

.hero-nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 28, 59, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 20;
}

.hero-nav-arrow:hover {
  background: #f59e0b;
  color: #081c3b;
  border-color: #f59e0b;
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

.carousel-indicator-pill {
  transition: all 0.25s ease;
  cursor: pointer;
  border-radius: 9999px;
  height: 8px;
  background: rgba(255, 255, 255, 0.35);
}

.carousel-indicator-pill.active {
  background: #f59e0b;
  width: 32px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
}

.carousel-progress-bar {
  height: 3px;
  background: #f59e0b;
  transition: width 0.1s linear;
}

/* ==========================================================================
   LIVE WEATHER DESK (थेट हवामान केंद्र व कृषी सल्ला)
   ========================================================================== */
.live-weather-card {
  background: linear-gradient(135deg, #0369a1 0%, #082f49 100%);
  color: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.25);
  position: relative;
  overflow: hidden;
}

.live-weather-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.weather-metric-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.weather-metric-badge:hover {
  background: rgba(255, 255, 255, 0.2);
}

.forecast-mini-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.forecast-mini-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ==========================================================================
   DEDICATED NEWS & UPDATES COLUMN (ताज्या बातम्या व परिपत्रके स्तंभ)
   ========================================================================== */
.news-feed-column {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-filter-btn {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.news-filter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.news-filter-btn.active {
  background: #081c3b;
  color: #fbbf24;
  border-color: #081c3b;
  box-shadow: 0 2px 6px rgba(8, 28, 59, 0.25);
}

.news-item-card {
  border-left: 3px solid transparent;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  background: #ffffff;
}

.news-item-card:hover {
  background: #f8fafc;
  border-left-color: #f59e0b;
  transform: translateX(3px);
}

.news-item-card.urgent {
  border-left-color: #ef4444;
  background: #fffafa;
}

.news-item-card.urgent:hover {
  background: #fef2f2;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
