/* ==========================================================================
   PRAGYA TRANSPORT - MODERN MOBILE & PWA DESIGN SYSTEM
   Inspired by Ghanaian warm tones: Gold, Crimson, Forest Green & Charcoal
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary-color: #FFC72C;        /* Ghana Gold */
  --primary-hover: #E5B224;
  --secondary-color: #D21034;      /* Ghana Crimson */
  --success-color: #006B3F;        /* Ghana Forest Green */
  --accent-blue: #007AFF;
  
  /* Light Theme Surfaces */
  --bg-primary: #F7F8FA;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --border-subtle: #E6E8EC;
  --border-focus: #FFC72C;
  
  /* Text */
  --text-main: #181A20;
  --text-muted: #6C727F;
  --text-light: #9EA3AE;
  --text-inverted: #FFFFFF;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(24, 26, 32, 0.04);
  --shadow-md: 0 6px 20px rgba(24, 26, 32, 0.08);
  --shadow-lg: 0 12px 32px rgba(24, 26, 32, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.5);
  
  /* Sizing & Transitions */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Tokens */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0F1115;
    --bg-card: #181B22;
    --bg-elevated: #222630;
    --border-subtle: #2A2E39;
    --text-main: #F4F5F7;
    --text-muted: #9BA1B0;
    --text-light: #646A78;
    --glass-bg: rgba(24, 27, 34, 0.88);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* Base Document Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  /* Extra space for floating bottom navigation bar + mobile safe area */
  padding-bottom: calc(85px + env(safe-area-inset-bottom, 16px));
}

/* ==========================================================================
   TOP APP BAR & BRANDING
   ========================================================================== */

.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
  transition: var(--transition-fast);
}

.top-navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.3px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-navbar .navbar-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* Flag Accent Stripe on top bar */
.top-navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #D21034 0%, #FFC72C 50%, #006B3F 100%);
}

/* ==========================================================================
   CARDS & SURFACES
   ========================================================================== */

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  overflow: hidden;
  margin-bottom: 16px;
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 20px;
  font-weight: 700;
}

.card-body {
  padding: 20px;
}

/* Action Card Grid */
.action-card {
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.action-card:active {
  transform: scale(0.97);
}

.action-card .action-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 199, 44, 0.15);
  color: #B8860B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
  transition: transform var(--transition-fast);
}

.action-card:hover .action-icon {
  transform: scale(1.08);
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */

.btn {
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

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

.btn-primary {
  background: linear-gradient(135deg, #FFC72C 0%, #E6AE15 100%);
  color: #1A1D20;
  box-shadow: 0 4px 14px rgba(255, 199, 44, 0.4);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #FFD147 0%, #EDB823 100%);
  color: #1A1D20;
  box-shadow: 0 6px 20px rgba(255, 199, 44, 0.5);
}

.btn-success {
  background-color: var(--success-color);
  color: #FFFFFF;
}

.btn-success:hover {
  background-color: #005632;
  color: #FFFFFF;
}

.btn-danger {
  background-color: var(--secondary-color);
  color: #FFFFFF;
}

.btn-outline-primary {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-subtle);
}

.btn-outline-primary:hover, .btn-outline-primary:active {
  background: var(--bg-primary);
  border-color: var(--primary-color);
  color: var(--text-main);
}

/* ==========================================================================
   MODERN FORM INPUTS (A11Y & Mobile Ergonomics)
   ========================================================================== */

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control, .form-select {
  font-size: 16px; /* Must be >=16px to avoid iOS safari auto-zoom */
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-card);
  color: var(--text-main);
  padding: 12px 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(255, 199, 44, 0.2);
  outline: none;
  background-color: var(--bg-card);
  color: var(--text-main);
}

.input-group-text {
  background-color: var(--bg-primary);
  border: 1.5px solid var(--border-subtle);
  border-right: none;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* ==========================================================================
   VEHICLE SELECTOR CARDS
   ========================================================================== */

.vehicle-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.vehicle-card {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  text-align: center;
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.vehicle-card .vehicle-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--primary-color);
  color: #1A1D20;
  white-space: nowrap;
}

.vehicle-card .vehicle-emoji {
  font-size: 32px;
  margin-bottom: 6px;
  display: block;
}

.vehicle-card .vehicle-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--text-main);
}

.vehicle-card .vehicle-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.vehicle-card.active, .vehicle-card:has(input:checked) {
  border-color: var(--primary-color);
  background: rgba(255, 199, 44, 0.08);
  box-shadow: 0 4px 16px rgba(255, 199, 44, 0.25);
}

/* ==========================================================================
   DRIVER ONLINE / OFFLINE TOGGLE & RADAR ANIMATION
   ========================================================================== */

.driver-hero-status {
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.radar-pulse-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.radar-pulse-ring.online {
  background: rgba(0, 107, 63, 0.12);
  color: var(--success-color);
}

.radar-pulse-ring.online::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--success-color);
  animation: radarPulse 2s infinite ease-out;
}

.radar-pulse-ring.offline {
  background: rgba(108, 114, 127, 0.12);
  color: var(--text-muted);
}

@keyframes radarPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ==========================================================================
   RIDE TRACKING STEPPER
   ========================================================================== */

.ride-tracking-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 20px 0;
}

.ride-tracking-stepper::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--border-subtle);
  z-index: 1;
}

.stepper-step {
  position: relative;
  z-index: 2;
  text-align: center;
}

.stepper-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin: 0 auto 6px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.stepper-step.completed .stepper-dot {
  background: var(--success-color);
  border-color: var(--success-color);
  color: #FFFFFF;
}

.stepper-step.active .stepper-dot {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #1A1D20;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 199, 44, 0.5);
}

.stepper-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR (FLOATING SHELL)
   ========================================================================== */

.bottom-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.bottom-navbar .navbar-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bottom-navbar .nav-item {
  flex: 1;
  text-align: center;
}

.bottom-navbar .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), transform var(--transition-fast);
  gap: 4px;
}

.bottom-navbar .nav-link i {
  font-size: 18px;
  transition: transform var(--transition-fast);
}

.bottom-navbar .nav-link.active {
  color: #D49000;
}

@media (prefers-color-scheme: dark) {
  .bottom-navbar .nav-link.active {
    color: var(--primary-color);
  }
}

.bottom-navbar .nav-link.active i {
  transform: translateY(-2px);
}

/* ==========================================================================
   NATIVE MODALS & DIALOGS (Compliant with Modern Web Guidance)
   ========================================================================== */

dialog:modal {
  overscroll-behavior: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
  color: var(--text-main);
  max-width: 90vw;
  width: 440px;
  padding: 24px;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ==========================================================================
   PWA INSTALL BOTTOM DRAWER
   ========================================================================== */

.pwa-install-drawer {
  position: fixed;
  bottom: calc(75px + env(safe-area-inset-bottom, 12px));
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  padding: 16px 20px;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.pwa-install-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.pwa-app-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.pwa-app-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Network Status Pill */
.network-status-pill {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
}

.network-status-pill.offline {
  display: flex;
  background-color: #D21034;
  color: #FFFFFF;
}

.network-status-pill.online {
  display: flex;
  background-color: var(--success-color);
  color: #FFFFFF;
}

/* Leaflet Map Customizations */
.leaflet-container {
  font-family: inherit;
  border-radius: var(--radius-md);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 4px;
}

.leaflet-popup-content {
  margin: 10px 14px;
  line-height: 1.4;
  font-size: 13px;
}

/* Ghana Post GPS & Ride Booking Styles */
.gps-banner {
  background: linear-gradient(135deg, rgba(255, 199, 44, 0.15), rgba(0, 107, 63, 0.1));
  border: 1px solid rgba(0, 107, 63, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gps-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-green);
  background: #FFFFFF;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.da-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid #E5E7EB;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  position: relative;
}

.route-selector-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-connector-line {
  position: absolute;
  left: 20px;
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #006B3F 0, #006B3F 4px, transparent 4px, transparent 8px);
  z-index: 1;
}

.da-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.da-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 14px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(0, 107, 63, 0.15);
}

.da-dot.pickup {
  background-color: var(--primary-green);
}

.da-dot.dropoff {
  background-color: #D21034;
  box-shadow: 0 0 0 4px rgba(210, 16, 52, 0.15);
}

.da-field-wrapper {
  flex-grow: 1;
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.da-field-wrapper:focus-within {
  border-color: var(--primary-gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.25);
}

.da-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.da-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.da-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: none;
}

.da-status-badge.verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 107, 63, 0.1);
  color: var(--primary-green);
}

.da-status-badge.resolving {
  display: inline-flex;
  background: rgba(255, 199, 44, 0.2);
  color: #855800;
}

.da-code-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
  padding: 2px 0;
  outline: none;
  text-transform: uppercase;
}

.da-code-input::placeholder {
  font-weight: 400;
  letter-spacing: normal;
  color: #9CA3AF;
  text-transform: none;
}

.da-landmark-name {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.da-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.da-btn-action {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.da-btn-action:hover, .da-btn-action:active {
  background: #F3F4F6;
  border-color: #9CA3AF;
}

.da-btn-action.gps {
  color: var(--primary-green);
  border-color: rgba(0, 107, 63, 0.3);
  background: rgba(0, 107, 63, 0.05);
}

/* Quick Landmark Chips */
.landmarks-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.landmarks-scroll::-webkit-scrollbar {
  display: none;
}

.landmark-chip {
  flex-shrink: 0;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.landmark-chip:hover, .landmark-chip:active {
  background: #E5E7EB;
}

.landmark-chip .code-badge {
  background: #FFFFFF;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-green);
  border: 1px solid rgba(0, 107, 63, 0.2);
}

/* Map Container */
.booking-map-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E5E7EB;
  margin-bottom: 16px;
}

#bookingMap {
  width: 100%;
  height: 100%;
  background: #F3F4F6;
}

.map-floating-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.map-stat-pill {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.map-control-btn {
  pointer-events: auto;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  color: var(--text-main);
}

/* Vehicle Choice Cards */
.vehicle-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.vehicle-choice-card {
  background: #FFFFFF;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.vehicle-choice-card.selected {
  border-color: var(--primary-gold);
  background: #FFFDF5;
  box-shadow: 0 4px 12px rgba(255, 199, 44, 0.25);
  transform: translateY(-2px);
}

.vehicle-choice-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary-green);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-bottom-left-radius: 6px;
}

.vehicle-choice-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 6px;
}

.vehicle-choice-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.vehicle-choice-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 2px;
}

.vehicle-choice-eta {
  font-size: 11px;
  color: var(--text-muted);
}

/* Fixed Bottom Action Bar */
.booking-bottom-bar {
  position: sticky;
  bottom: 64px;
  background: #FFFFFF;
  padding: 12px 16px 16px;
  border-top: 1px solid #E5E7EB;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: 0 -16px -16px;
  z-index: 100;
}

/* Instant Autocomplete Suggestions Dropdown */
.da-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1050;
  display: none;
  margin-top: 4px;
}

.da-autocomplete-dropdown.show {
  display: block;
}

.da-autocomplete-item {
  padding: 10px 14px;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background-color 0.15s ease;
}

.da-autocomplete-item:last-child {
  border-bottom: none;
}

.da-autocomplete-item:hover,
.da-autocomplete-item:active {
  background-color: #FFFDF5;
}

.da-autocomplete-main {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.da-autocomplete-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.da-code-pill {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 107, 63, 0.1);
  color: var(--primary-green);
  border: 1px solid rgba(0, 107, 63, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
