:root {
  --primary: #1e3a8a;
  --primary-dark: #172554;
  --primary-light: #3b82f6;
  --secondary: #d97706;
  --success: #16a34a;
  --danger: #dc2626;
  --dark-bg: #0f172a;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
}

/* Disables tap highlight grey box and gives native app feeling */
* {
  -webkit-tap-highlight-color: transparent;
  user-select: text;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f1f5f9;
  color: #1e293b;
  min-height: 100vh;
  padding-bottom: 78px; /* Safe space for floating mobile nav */
}

/* ====================================================
   RESPONSIVE MOBILE TYPOGRAPHY & TITLE SIZING
   (मोबाइल स्क्रीन के अनुकूल संतुलित व कॉम्पैक्ट फ़ॉन्ट साइज़)
   ==================================================== */
.page-hero-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.page-hero-subtitle {
  font-size: 0.74rem !important;
  line-height: 1.35;
  max-width: 95%;
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
  color: #64748b !important;
}

@media (min-width: 768px) {
  .page-hero-title {
    font-size: 1.85rem !important;
  }
  .page-hero-subtitle {
    font-size: 0.9rem !important;
    max-width: 600px;
  }
}

/* General Headings Optimization on Mobile screens */
@media (max-width: 767.98px) {
  h1, .h1 { font-size: 1.2rem !important; }
  h2, .h2 { font-size: 1.1rem !important; }
  h3, .h3 { font-size: 1.0rem !important; }
  h4, .h4 { font-size: 0.92rem !important; }
  h5, .h5 { font-size: 0.85rem !important; }
  h6, .h6 { font-size: 0.78rem !important; }

  .navbar-brand span.fs-6 {
    font-size: 0.82rem !important;
  }
}

/* App Header Styling */
.app-navbar {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border-bottom: 2px solid rgba(217, 119, 6, 0.4);
}

.brand-title {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.badge-gold {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Cards & Surfaces */
.card-app {
  border: 1px solid var(--border-color);
  border-radius: 1.1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* ====================================================
   FLUID MOTION ANIMATIONS & VISUAL HIGHLIGHTS
   (पेशेवर मोशन एनिमेशन व फ्लोटिंग इफेक्ट्स)
   ==================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.25);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(30, 58, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 58, 138, 0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-delay-1 {
  animation-delay: 0.08s;
}

.animate-delay-2 {
  animation-delay: 0.16s;
}

/* Search Box Floating App Header */
.search-card-container {
  border-radius: 1.25rem !important;
  background: #ffffff;
  border: 1.5px solid rgba(30, 58, 138, 0.15) !important;
  box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.1), 0 8px 10px -6px rgba(30, 58, 138, 0.04) !important;
  animation: pulseGlow 3s infinite;
  transition: all 0.2s ease;
}

.search-card-container:focus-within {
  border-color: var(--primary) !important;
  box-shadow: 0 12px 30px -4px rgba(30, 58, 138, 0.2) !important;
}

/* Result Card Elevation & Modern Border Accent */
.result-card-mobile {
  border-radius: 1.15rem !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.result-card-mobile:hover, .result-card-mobile:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(0,0,0,0.08) !important;
}

/* ====================================================
   BUTTONS & TAPPABLE ELEMENTS TACTILE PUSH FEEDBACK
   (भौतिक प्रेस प्रभाव - बटन दबने का स्पष्ट अहसास)
   ==================================================== */
.btn, 
.nav-item, 
.dropdown-item, 
.manage-user-btn,
.view-user-btn,
.edit-user-btn {
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.12s ease, 
              background-color 0.15s ease,
              filter 0.15s ease !important;
  cursor: pointer;
}

/* Active / Pressed state for buttons */
.btn:active, 
.dropdown-item:active {
  transform: scale(0.94) !important;
  filter: brightness(0.92) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2) inset !important;
}

/* Number Plate Badge */
.vehicle-plate {
  display: inline-block;
  background: #ffffff;
  border: 2px solid #000;
  border-left: 10px solid #003399;
  border-radius: 6px;
  font-family: 'Segoe UI', 'Consolas', monospace;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  color: #111;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ====================================================
   MOBILE BOTTOM NAVIGATION BAR (FLOATING NATIVE APP STYLE)
   ==================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.09);
  border-top: 1px solid #e2e8f0;
  z-index: 1040;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #64748b;
  font-size: 0.73rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
  position: relative;
  transition: transform 0.1s ease, color 0.15s ease;
}

.mobile-bottom-nav .nav-item i {
  font-size: 1.35rem;
  margin-bottom: 2px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Mobile Nav Touch Feedback (Icon Bounce / Push) */
.mobile-bottom-nav .nav-item:active {
  transform: scale(0.88);
  color: var(--primary);
}

.mobile-bottom-nav .nav-item:active i {
  transform: scale(0.85);
}

.mobile-bottom-nav .nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.mobile-bottom-nav .nav-item.active i {
  transform: scale(1.12);
  color: var(--primary);
}

.mobile-bottom-nav .nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 0 0 4px 4px;
}

/* WhatsApp Quick Action Button */
.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  border: none;
}
.btn-whatsapp:hover {
  background-color: #1eb956;
  color: #ffffff;
}

/* Table Dropdown / Modals */
.table-responsive {
  overflow-x: auto;
  overflow-y: visible !important;
}

.dropdown-menu {
  z-index: 1050 !important;
}

/* Print/PDF Friendly Styles */
@media print {
  .no-print, .mobile-bottom-nav, .app-navbar, .btn, .app-install-banner {
    display: none !important;
  }
  body {
    padding-bottom: 0;
    background: white;
  }
}

/* Android App Install Banner */
.app-install-banner {
  position: fixed;
  bottom: 64px;
  left: 12px;
  right: 12px;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 12px 14px;
  z-index: 1040;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: slideUpBanner 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpBanner {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.app-install-banner .app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.app-install-banner .app-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.app-install-banner .app-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.2;
}

.app-install-banner .install-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  border-radius: 10px;
  padding: 7px 14px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-install-banner .close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.1rem;
  padding: 4px;
  line-height: 1;
}

