/* ==========================================================================
   JYLTOW Fleet Mobile App - Production Mobile UI Stylesheet
   Cloned directly from: src/web-dashboard/fleet/FleetWebDashboard.tsx (isMobile: true)
   and src/screens/fleet/FleetDashboardScreen.tsx
   ========================================================================== */

/* Main Mobile App Container */
.mobile-app-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: #f8fafc;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Mobile Topbar: Matches renderHeader() in FleetWebDashboard.tsx
   ========================================================================== */
.mobile-topbar {
  height: 54px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-hamburger span {
  width: 20px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-text {
  font-size: 19px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.brand-badge {
  background: #2563EB;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-gps-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  padding: 3px 7px;
  border-radius: 6px;
}

.gps-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  animation: gpsPulse 1.8s infinite;
}

@keyframes gpsPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-topbar-icon {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.avatar-btn {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

/* ==========================================================================
   Slide-Out Navigation Drawer: Matches renderSidebar(true) in FleetWebDashboard.tsx
   ========================================================================== */
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  width: 82%;
  max-width: 300px;
  height: 100%;
  background: #0F172A;
  transform: translateX(-100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px 16px 20px;
  user-select: none;
  z-index: 2001;
}

.drawer-backdrop.open .mobile-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.drawer-nav {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow-y: auto;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
}

.drawer-nav-item:hover, .drawer-nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.drawer-nav-item.active {
  font-weight: 700;
}

.drawer-nav-item svg {
  width: 17px;
  height: 17px;
  color: #94a3b8;
  flex-shrink: 0;
}

.drawer-nav-item.active svg {
  color: #F97316; /* Orange active accent */
}

.drawer-nav-badge {
  margin-left: auto;
  background: #EF4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

.drawer-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   Mobile Scroll Area & Views
   ========================================================================== */
.mobile-scroll-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.mobile-view {
  display: none;
  padding: 14px 14px 60px;
}

.mobile-view.active {
  display: block;
  animation: viewFadeIn 150ms ease-out;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating Toast Banner */
.mobile-toast {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 1500;
  transform: translateY(-80px);
  opacity: 0;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mobile-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.toast-icon.error { background: #ef4444; }
.toast-icon.info { background: #2563eb; }

.toast-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   TAB 1: Dashboard (view-map) Mobile Layout
   ========================================================================== */
/* 2x2 Stat Cards Grid on Mobile */
.mobile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.m-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.m-stat-icon.blue { background: #eff6ff; color: #3b82f6; }
.m-stat-icon.green { background: #f0fdf4; color: #22c55e; }
.m-stat-icon.orange { background: #fff7ed; color: #f97316; }
.m-stat-icon.purple { background: #fdf4ff; color: #d946ef; }

.m-stat-meta {
  display: flex;
  flex-direction: column;
}

.m-stat-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.m-stat-value {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

/* Mobile Map Radar Card */
.mobile-map-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 14px;
}

.mobile-map-header {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-map-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-map-filter-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 3px 8px;
  border-radius: 6px;
}

.mobile-map-viewport {
  height: 180px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.mobile-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mobile-map-truck {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 400ms ease;
}

.m-truck-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.4);
  border: 2px solid #ffffff;
}

.m-truck-icon.en_route { background: #f97316; box-shadow: 0 3px 8px rgba(249, 115, 22, 0.4); }
.m-truck-icon.available { background: #10b981; box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4); }

.m-truck-label {
  font-size: 9px;
  font-weight: 800;
  background: #0f172a;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 3px;
  white-space: nowrap;
}

.m-incident-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 12;
}

.m-incident-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  animation: incidentPulse 1.8s infinite;
}

@keyframes incidentPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.mobile-map-footer {
  padding: 8px 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #64748b;
}

/* Dispatch Queue Header & Tabs */
.mobile-queue-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-queue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-queue-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.btn-priority-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
}

.btn-priority-chip.active {
  background: #fef2f2;
  border-color: #fee2e2;
  color: #ef4444;
}

.mobile-queue-tabs {
  display: flex;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.m-queue-tab {
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 120ms ease;
}

.m-queue-tab.active {
  background: #fff7ed;
  color: #f97316;
}

/* Mobile Request Cards */
.m-queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-job-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.m-job-card.emergency {
  background: #fffafa;
  border-color: #fecaca;
}

.m-job-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-job-id {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
}

.m-job-id.emergency {
  color: #ef4444;
}

.m-job-payout {
  font-size: 14px;
  font-weight: 900;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  padding: 2px 7px;
  border-radius: 6px;
}

.m-job-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-client-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.m-vehicle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.m-route-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  border: 1px solid #f1f5f9;
}

.m-route-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
}

.m-route-item strong {
  color: #0f172a;
}

.m-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.m-dot.pickup { background: #2563eb; }
.m-dot.dropoff { background: #16a34a; }

.m-eta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 3px 8px;
  border-radius: 6px;
}

.btn-m-dispatch {
  width: 100%;
  height: 38px;
  background: #f97316;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.25);
}

/* ==========================================================================
   TAB 2: Drivers (view-drivers)
   ========================================================================== */
.m-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.m-page-title {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.btn-m-action-primary {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.m-search-input-wrap {
  position: relative;
  margin-bottom: 12px;
}

.m-search-input {
  width: 100%;
  height: 38px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 12px 0 34px;
  font-size: 13px;
  color: #0f172a;
}

.m-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.m-drivers-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-driver-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.m-driver-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-driver-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  position: relative;
  flex-shrink: 0;
}

.m-driver-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  position: absolute;
  bottom: 0;
  right: 0;
}
.m-driver-status-dot.available { background: #22c55e; }
.m-driver-status-dot.en_route { background: #f97316; }
.m-driver-status-dot.offline { background: #94a3b8; }

.m-driver-meta {
  flex: 1;
  min-width: 0;
}

.m-driver-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.m-driver-phone {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

.btn-m-power-toggle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 120ms ease;
}

.btn-m-power-toggle.online {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}

.m-driver-details-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

/* ==========================================================================
   TAB 3: Vehicles (view-vehicles)
   ========================================================================== */
.m-vehicles-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-vehicle-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.m-vehicle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-plate-badge {
  background: #0F172A;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-left: 3px solid #3b82f6;
}

.m-vehicle-model {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.m-vehicle-specs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #64748b;
}

/* ==========================================================================
   TAB 4: History (view-history)
   ========================================================================== */
.m-history-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-history-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  cursor: pointer;
}

.m-history-card:hover {
  border-color: #cbd5e1;
}

.m-history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-history-client {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.m-paid-badge {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.m-history-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-m-history-sub {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  text-align: center;
}

/* ==========================================================================
   TAB 5: Billing & Accounting (view-accounting)
   ========================================================================== */
.m-balance-card {
  background: #0f172a;
  border-radius: 16px;
  padding: 18px;
  color: #ffffff;
  margin-bottom: 12px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
}

.m-balance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.m-balance-amount {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.m-reload-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.m-reload-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.btn-m-reload-pill {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* ==========================================================================
   TAB 6: Company Profile, 7: Verification, 8: Help, 9: Settings
   ========================================================================== */
.m-profile-card, .m-verification-card, .m-help-card, .m-settings-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.m-profile-banner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 12px;
  padding: 18px 14px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 12px;
}

.m-tariff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.m-tariff-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.m-segmented-row {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
  margin-top: 8px;
}

.m-segmented-opt {
  flex: 1;
  text-align: center;
  padding: 6px 2px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.m-segmented-opt.active {
  background: #2563eb;
  color: #ffffff;
}

.m-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.m-toggle-switch {
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 150ms ease;
}

.m-toggle-switch.active {
  background: #2563eb;
}

.m-toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 150ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.m-toggle-switch.active .m-toggle-thumb {
  transform: translateX(20px);
}

/* ==========================================================================
   Mobile Bottom Sheet Modals
   ========================================================================== */
.m-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.m-modal-backdrop.show {
  display: flex;
}

.m-bottom-sheet {
  width: 100%;
  max-height: 85%;
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  animation: sheetSlideUp 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle-bar {
  width: 36px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin: 10px auto 4px;
}

.sheet-header {
  padding: 10px 16px 12px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.sheet-close-btn {
  background: #f1f5f9;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  font-size: 13px;
}

.sheet-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
}

.sheet-footer {
  padding: 12px 16px 22px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 10px;
  background: #ffffff;
}
