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

:root {
  --font-primary: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  --color-navy: #C51118;
  --color-green: #148A3B;
  --color-green-bright: #16A34A;
  --color-blue: #2563EB;
  --color-soft-blue: #EFF6FF;
  --color-bg: #F4F7FA;
  --color-text-main: #172033;
  --color-text-sub: #667085;
  --color-border: #E2E8F0;
  --color-post-red: #D71920;
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 4rem; /* Safe padding for bottom mobile navigation bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Touch-optimized Mobile Input Fields */
input[type="number"], input[type="text"] {
  font-size: 1rem; /* Prevents auto-zoom on iOS Safari */
  min-height: 44px;
}

/* Range Slider Styling - Touch Optimized */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #E2E8F0;
  outline: none;
  margin: 12px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #148A3B;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(20, 138, 59, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
  border: 2px solid #FFFFFF;
}

input[type="range"]::-webkit-slider-thumb:hover,
input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.15);
  background: #16A34A;
}

input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #148A3B;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: 0 3px 8px rgba(20, 138, 59, 0.4);
}

/* Custom Scrollbar for Year Tables */
.table-responsive::-webkit-scrollbar {
  height: 5px;
}
.table-responsive::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

/* Card Glow and Mobile App Shadow */
.calc-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(197, 17, 24, 0.04);
  border-radius: 1.25rem;
}

.result-card {
  background: linear-gradient(135deg, #C51118 0%, #8B0000 100%);
  border-radius: 1rem;
}

/* Mobile App Button Feel */
.btn-calculate {
  background-color: #148A3B;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 52px;
}

.btn-calculate:hover {
  background-color: #16A34A;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}

.btn-calculate:active {
  transform: scale(0.98);
}

/* App Bottom Navigation Bar Shadow */
.mobile-bottom-nav {
  box-shadow: 0 -4px 16px rgba(197, 17, 24, 0.08);
}

/* Category Filter Chips */
.chip-btn {
  transition: all 0.2s ease;
  min-height: 38px;
}
.chip-btn.active {
  background-color: #C51118;
  color: #FFFFFF;
  font-weight: 600;
}
