/* ============================================================
   REINDEER COMPONENT STYLES
   Exact inDrive / Reindeer native layout & components
   ============================================================ */

/* Home "Where from & how much?" Card */
.home-search-card {
  background-color: #F2F2F2;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background-color 0.15s;
}
.home-search-card:hover {
  background-color: #E8E8E8;
}

/* Home Action Cards: Shop4me & Schedule */
.action-card-shop4me {
  background-color: #1E1E1E;
  border-radius: 12px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.12s;
}
.action-card-shop4me:hover {
  background-color: #2A2A2A;
}
.coming-soon-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  background-color: var(--brand-lime);
  color: #111111;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  text-transform: uppercase;
}
.action-card-schedule {
  background-color: #F0FDF8;
  border-radius: 12px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  cursor: pointer;
  border: 1px solid rgba(197, 242, 40, 0.3);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.12s;
}
.action-card-schedule:hover {
  background-color: #E7FFDE;
}


/* Route Preview: Top Floating Banner (Matches fragment_route_preview.xml:16) */
.top-banner-card {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 16px));
  left: 16px;
  right: 16px;
  background-color: #FFFFFF;
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  z-index: 15;
}
.route-back-btn {
  position: absolute;
  top: max(96px, calc(env(safe-area-inset-top, 16px) + 84px));
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid var(--rule);
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  z-index: 15;
}

/* Route Preview: Recommended Fare Stepper Card (Matches fragment_route_preview.xml:148) */
.fare-stepper-card {
  background-color: #F5F5F5;
  border-radius: 16px;
  height: 78px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 14px;
}
.btn-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #FFFFFF;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s;
}
.btn-step-circle:hover {
  background-color: var(--brand-lime);
}
.tv-offer-fare {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.tv-recommended-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Auto-accept Switch Row (Matches fragment_route_preview.xml:219) */
.auto-accept-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}
.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #DDDDDD;
  transition: 0.2s;
  border-radius: 28px;
}
.switch-slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch-toggle input:checked + .switch-slider {
  background-color: var(--brand-lime);
}
.switch-toggle input:checked + .switch-slider::before {
  transform: translateX(20px);
}

/* Find Couriers Action Button (Matches fragment_route_preview.xml:253) */
.btn-find-couriers {
  width: 100%;
  height: 56px;
  background-color: var(--brand-lime);
  color: #111111;
  font-size: 17px;
  font-weight: 900;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}
.btn-find-couriers:hover:not(:disabled) {
  background-color: var(--brand-lime-hover);
}
.btn-find-couriers:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Finding Driver: Floating Cancel Pill (Matches fragment_finding_driver.xml:25) */
.cancel-request-pill {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 16px));
  left: 16px;
  height: 44px;
  padding: 0 16px;
  background-color: #FFFFFF;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 15;
}

/* Map Navigator Floating Bar (Explore request on map) */
.map-navigator-bar {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 16px));
  right: 68px;
  display: flex;
  gap: 6px;
  z-index: 15;
}
.nav-btn {
  height: 38px;
  padding: 0 12px;
  background-color: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 19px;
  font-size: 12.5px;
  font-weight: 700;
  color: #111111;
  box-shadow: var(--shadow-sm);
}

/* Map Scrim */
.map-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 16;
}
.map-scrim.active {
  opacity: 1;
  pointer-events: auto;
}

/* Courier Offer Cards Overlay (Matches fragment_finding_driver.xml:79) */
.offers-overlay-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 18;
  display: none;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.offers-overlay-container.active {
  display: block;
}
.offer-cards-scroll-list {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0 16px 20px;
}

/* Offer Card (Matches item_courier_offer_card.xml) */
.item-courier-offer-card {
  background-color: #FFFFFF;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
}
.courier-vehicle-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-surface-secondary);
  padding: 4px 12px;
  border-radius: 999px;
}
.online-dot-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #10B981;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}
.btn-decline-card {
  height: 100%;
  background-color: #FFFFFF;
  border: 1.5px solid #DDDDDD;
  color: #333333;
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
}
.accept-btn-wrapper {
  position: relative;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.btn-accept-card {
  width: 100%;
  height: 100%;
  background-color: var(--brand-lime);
  color: #111111;
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
}
.pb-offer-timer {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: #111111;
  animation: timerDeplete linear forwards;
}
@keyframes timerDeplete {
  from { width: 100%; }
  to { width: 0%; }
}

/* Search Fare Stepper (− $X +) */
.search-fare-stepper {
  background-color: #F0F0F0;
  border-radius: 32px;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  margin-bottom: 12px;
}
.btn-stepper-round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  font-size: 22px;
  font-weight: 800;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Side Navigation Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
}
.drawer-panel {
  width: 300px;
  max-width: 80vw;
  height: 100%;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top, 20px)) 20px 20px;
  animation: slideDrawer 0.25s ease-out;
}
@keyframes slideDrawer {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.drawer-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.drawer-menu-list {
  flex: 1;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.1s;
}
.drawer-item:hover {
  background-color: var(--bg-surface-secondary);
}
.drawer-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.drawer-courier-cta {
  background-color: #FFF9E6;
  border: 1px solid #FFE082;
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  cursor: pointer;
}
.drawer-footer {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

/* Social icon buttons in drawer (matches HomeFragment.kt:387-395) */
.drawer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-surface-secondary);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s;
}
.drawer-social-btn:hover {
  background-color: #EEEEEE;
}

/* Driver / Courier Avatar (shared across all pages) */
.driver-avatar {
  border-radius: 50%;
  background-color: var(--brand-lime);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

/* Nearby places row (matches populateNearbyList in HomeFragment.kt) */
.nearby-place-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  transition: background-color 0.12s;
  border-radius: 8px;
  padding-left: 4px;
  padding-right: 4px;
}
.nearby-place-row:hover {
  background-color: var(--bg-surface-secondary);
}
.nearby-place-row:last-child {
  border-bottom: none;
}

/* Autocomplete Suggestions Box */
.suggestions-box {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  margin-top: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.1s;
  border-bottom: 1px solid var(--rule);
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover {
  background-color: var(--bg-surface-secondary);
}
.suggestion-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Utility Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  height: 54px;
  background-color: var(--brand-lime);
  color: #111111;
  font-size: 16px;
  font-weight: 900;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}
.btn-primary:hover:not(:disabled) { background-color: var(--brand-lime-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-danger-ghost {
  background: none;
  border: 1.5px solid var(--status-error);
  color: var(--status-error);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.btn-danger-ghost:hover { background-color: var(--status-error-bg); }

/* ── Card Surface ─────────────────────────────────────────────────────────── */
.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}

/* ── Auth Form Elements ───────────────────────────────────────────────────── */
.input-label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.input-box {
  background-color: var(--bg-surface-secondary);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s;
}
.input-box:focus-within {
  border-color: var(--rule-focus);
  background-color: var(--bg-surface);
}
.input-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  color: var(--text-primary);
}

/* OTP Digit Inputs */
.otp-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.otp-digit {
  width: 48px;
  height: 56px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--rule);
  background-color: var(--bg-surface-secondary);
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.otp-digit:focus {
  border-color: var(--rule-focus);
  background-color: var(--bg-surface);
}

/* Route Indicators (Delivery History) */
.route-indicator {
  border-radius: 50%;
  flex-shrink: 0;
}
.route-indicator.pickup {
  background-color: #C5F228;
  border: 2px solid #111111;
}
.route-indicator.drop {
  background-color: #EF4444;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1.5px #EF4444;
}

/* Slide up animation for offer cards overlay */
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
