/* ==========================================================================
   Hunarmand (ہنرمند) — Official Executive Operations & Command Center
   Modern Motion-Graphics Design System (Deep Slate Navy & Ocean Teal)
   ========================================================================== */

@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: url('https://hunarmand.tech/assets/fonts/JameelNooriNastaleeq.ttf') format('truetype'),
       url('../assets/fonts/JameelNooriNastaleeq.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand Tokens matched to Hunarmand Identity */
  --brand-primary: #087F9F;         /* Ocean Teal */
  --brand-primary-hover: #0A98BE;
  --brand-primary-light: rgba(8, 127, 159, 0.15);
  --brand-accent: #58DAD2;          /* Bright Aqua Cyan */
  --brand-accent-glow: rgba(88, 218, 210, 0.25);
  --brand-gold: #F59E0B;            /* Amber Gold */
  --brand-gold-light: rgba(245, 158, 11, 0.15);
  --brand-emerald: #10B981;         /* Radiant Emerald */
  --brand-emerald-light: rgba(16, 185, 129, 0.15);
  --brand-danger: #EF4444;          /* Crimson Red */
  --brand-danger-light: rgba(239, 68, 68, 0.15);
  
  /* Deep Executive Navy Surfaces */
  --bg-app: #08121A;                /* Pitch Slate */
  --bg-topbar: rgba(12, 25, 36, 0.85);
  --bg-sidebar: #0C1A26;
  --surface-card: #112332;          /* Slate Card Surface */
  --surface-card-hover: #162C3E;
  --surface-inset: #0A1722;
  --border-line: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(8, 127, 159, 0.4);

  /* Typography */
  --text-main: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-accent: #58DAD2;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-urdu: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Urdu Typesetting', serif;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(8, 127, 159, 0.35);
  --shadow-glow-accent: 0 0 30px rgba(88, 218, 210, 0.3);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 14px;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hidden {
  display: none !important;
}

/* Shell Layout */
.shell {
  max-width: 1680px;
  margin: 0 auto;
  padding: 20px 28px;
}

/* ==========================================================================
   1. LOGIN VIEW
   ========================================================================== */
.login-wrap {
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xl);
  padding: 42px 36px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--brand-accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.brand-header {
  text-align: center;
  margin-bottom: 24px;
}

.logo-circle-glow {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 127, 159, 0.25) 0%, transparent 70%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.brand-logo-img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

.brand-mark-urdu {
  display: block;
  font-family: var(--font-urdu);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--brand-accent);
  margin-top: 4px;
}

.eyebrow-accent {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-top: 4px;
}

.login-card h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--text-main);
  text-align: center;
}

.login-card p.muted {
  font-size: 13.5px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-inset);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(8, 127, 159, 0.2);
}

.input-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 4px;
}

.status-warning {
  color: var(--brand-gold);
  font-weight: 600;
}

.status-success {
  color: var(--brand-emerald);
  font-weight: 700;
}

.primary-btn {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
  color: #FFFFFF;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(8, 127, 159, 0.35);
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 127, 159, 0.5);
}

.primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.primary-btn.small {
  padding: 9px 16px;
  font-size: 12.5px;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-glow:hover::after {
  left: 140%;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-line);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.ghost-btn.small {
  padding: 7px 14px;
  font-size: 12px;
}

.login-sublinks {
  text-align: center;
  margin-top: 14px;
}

.back-link {
  font-size: 13px;
  color: var(--brand-accent);
  text-decoration: none;
  font-weight: 700;
}

.back-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   2. TOPBAR & NAVIGATION
   ========================================================================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-topbar);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

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

.logo-small-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface-inset);
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(8, 18, 26, 0.04);
}

.brand-logo-small {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.btn-text-compact {
  display: none;
}

.btn-text-full {
  display: inline;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.topbar-breadcrumb .brand-title {
  color: var(--brand-primary);
}

.topbar-breadcrumb .divider {
  color: var(--text-muted);
}

.topbar-breadcrumb .active-crumb {
  color: var(--text-secondary);
}

.page-headline {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
}

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

/* Telemetry Indicator Pill with Pulse Ring */
.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface-inset);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  position: relative;
}

.telemetry-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-emerald);
  position: relative;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: pulseGlow 2s infinite ease-out;
  z-index: 1;
}

@keyframes pulseGlow {
  0% { transform: translateY(-50%) scale(1); opacity: 0.8; }
  100% { transform: translateY(-50%) scale(3.5); opacity: 0; }
}

.telemetry-pill strong {
  color: var(--brand-emerald);
}

.admin-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  background: var(--surface-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}

.admin-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  color: #08121A;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ==========================================================================
   3. LAYOUT & SIDEBAR
   ========================================================================== */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.sidebar {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 24px;
}

.nav-group-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 8px 12px 4px;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(8, 127, 159, 0.25) 0%, rgba(8, 127, 159, 0.08) 100%);
  color: var(--brand-accent);
  border-left: 3px solid var(--brand-accent);
  font-weight: 800;
}

.nav-icon {
  margin-right: 10px;
  font-size: 15px;
}

.nav-count {
  background: var(--brand-gold);
  color: #08121A;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.sidebar-footer-hint {
  margin-top: 20px;
  padding: 12px;
  border-top: 1px solid var(--border-line);
  color: var(--text-muted);
  font-size: 11px;
}

kbd {
  background: var(--surface-inset);
  border: 1px solid var(--border-line);
  border-radius: 4px;
  padding: 2px 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}

/* ==========================================================================
   4. CONTENT & DASHBOARD MOTION GRAPHICS
   ========================================================================== */
.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel {
  display: none;
  animation: slideFadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel.active {
  display: block;
}

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

.panel-card {
  background: var(--surface-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-heading h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.panel-heading h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Stats Grid with Animated Count-Ups */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat {
  background: var(--surface-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.stat:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.stat strong {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.stat span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Multi-Color Logo-Inspired Theme Tokens for Stat Cards */
.stat-teal {
  border-left: 4px solid #087F9F;
}
.stat-teal:hover {
  border-color: #04C7B6;
  box-shadow: 0 8px 24px rgba(4, 199, 182, 0.18);
}
.stat-teal strong { color: #58DAD2; }

.stat-violet {
  border-left: 4px solid #7C368C;
}
.stat-violet:hover {
  border-color: #A42189;
  box-shadow: 0 8px 24px rgba(164, 33, 137, 0.22);
}
.stat-violet strong { color: #D863CD; }

.stat-amber {
  border-left: 4px solid #FFA712;
}
.stat-amber:hover {
  border-color: #FDDB00;
  box-shadow: 0 8px 24px rgba(255, 167, 18, 0.22);
}
.stat-amber strong { color: #FFA712; }

.stat-cyan {
  border-left: 4px solid #58DAD2;
}
.stat-cyan:hover {
  border-color: #04C7B6;
  box-shadow: 0 8px 24px rgba(88, 218, 210, 0.2);
}
.stat-cyan strong { color: #58DAD2; }

.stat-emerald {
  border-left: 4px solid #0EBB79;
}
.stat-emerald:hover {
  border-color: #10B981;
  box-shadow: 0 8px 24px rgba(14, 187, 121, 0.22);
}
.stat-emerald strong { color: #0EBB79; }

.stat-green {
  border-left: 4px solid #10B981;
}
.stat-green:hover {
  border-color: #34D399;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.22);
}
.stat-green strong { color: #34D399; }

.stat-gold {
  border-left: 4px solid #F5BD20;
}
.stat-gold:hover {
  border-color: #FDDB00;
  box-shadow: 0 8px 24px rgba(245, 189, 32, 0.22);
}
.stat-gold strong { color: #F5BD20; }

.stat-yellow {
  border-left: 4px solid #FDDB00;
}
.stat-yellow:hover {
  border-color: #FDDB00;
  box-shadow: 0 8px 24px rgba(253, 219, 0, 0.25);
}
.stat-yellow strong { color: #FDDB00; }

/* Telemetry Cockpit Grid */
.telemetry-cockpit-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 20px;
}

@media (max-width: 1100px) {
  .telemetry-cockpit-grid {
    grid-template-columns: 1fr;
  }
}

/* Live Operational Radar Sweep */
.telemetry-radar-card {
  position: relative;
  overflow: hidden;
}

.radar-visual-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 10px;
}

.radar-scope {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 127, 159, 0.15) 0%, rgba(8, 18, 26, 0.95) 75%);
  border: 2px solid rgba(88, 218, 210, 0.4);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(88, 218, 210, 0.2), 0 0 16px rgba(8, 127, 159, 0.2);
}

.radar-grid-lines {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: 
    repeating-radial-gradient(circle, transparent 0, transparent 24px, rgba(88, 218, 210, 0.15) 25px, transparent 26px),
    linear-gradient(to right, transparent 49.5%, rgba(88, 218, 210, 0.2) 50%, transparent 50.5%),
    linear-gradient(to bottom, transparent 49.5%, rgba(88, 218, 210, 0.2) 50%, transparent 50.5%);
}

.radar-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 95px;
  height: 95px;
  transform-origin: top left;
  background: conic-gradient(from 0deg, rgba(88, 218, 210, 0.6) 0deg, rgba(88, 218, 210, 0) 60deg);
  animation: radarSweep 3.5s linear infinite;
  border-radius: 0 0 100% 0;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #FFFFFF;
}

.radar-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 10px var(--brand-emerald);
  animation: nodePulse 2s infinite ease-in-out;
}

.radar-node .node-label {
  position: absolute;
  top: -14px;
  left: 10px;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-accent);
}

.node-lahore { top: 38%; left: 62%; animation-delay: 0.2s; background: #0EBB79; box-shadow: 0 0 12px #0EBB79; }
.node-karachi { top: 72%; left: 32%; animation-delay: 0.9s; background: #04C7B6; box-shadow: 0 0 12px #04C7B6; }
.node-islamabad { top: 22%; left: 54%; animation-delay: 1.4s; background: #A42189; box-shadow: 0 0 12px #A42189; }
.node-rawalpindi { top: 26%; left: 56%; animation-delay: 0.6s; background: #FFA712; box-shadow: 0 0 12px #FFA712; }
.node-faisalabad { top: 46%; left: 52%; animation-delay: 1.1s; background: #58DAD2; box-shadow: 0 0 12px #58DAD2; }

@keyframes nodePulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.radar-telemetry-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--surface-inset);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}

.meta-row strong {
  color: var(--brand-accent);
}

/* Svg Area Chart */
.svg-chart-container {
  width: 100%;
  position: relative;
  margin-top: 10px;
}

.animated-area-chart {
  width: 100%;
  height: 180px;
  overflow: visible;
}

.chart-line-orders {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chart-line-rev {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.chart-x-axis {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px 0;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.chart-legend {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.legend-dot.teal { background: #087F9F; }
.legend-dot.gold { background: #F59E0B; }

/* ==========================================================================
   5. TABLES & DATA LISTS
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-line);
  background: var(--surface-inset);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

thead {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-line);
}

th {
  padding: 13px 16px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

td strong {
  color: var(--text-main);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.badge.success { background: var(--brand-emerald-light); color: var(--brand-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge.warn    { background: var(--brand-gold-light); color: var(--brand-gold); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge.danger  { background: var(--brand-danger-light); color: var(--brand-danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge.navy    { background: var(--brand-primary-light); color: var(--brand-accent); border: 1px solid rgba(88, 218, 210, 0.3); }

.pulse-badge {
  position: relative;
}

/* Action Buttons inside tables */
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
}

.action-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
}

.action-btn.primary {
  background: var(--brand-emerald);
  border-color: var(--brand-emerald);
  color: #FFFFFF;
}

.action-btn.danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--brand-danger);
}

.action-btn.danger:hover {
  background: var(--brand-danger);
  color: #FFFFFF;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-input-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-input-wrap input {
  padding-left: 36px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   6. MODALS & SPLIT-SCREEN INSPECTION STUDIOS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 13, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--surface-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xl);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.modal-md { max-width: 560px; }
.modal-lg { max-width: 760px; }
.modal-xl { max-width: 1080px; }

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.close-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 26px;
  line-height: 1;
  padding: 4px;
}

.close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border-line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
}

/* Direct User Onboarding Form Controls */
.role-selector-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}

.role-option input {
  display: none;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-line);
  background: var(--surface-inset);
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-card .role-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.role-option input:checked + .role-card {
  border-color: var(--brand-accent);
  background: linear-gradient(135deg, rgba(8, 127, 159, 0.2) 0%, rgba(88, 218, 210, 0.05) 100%);
  box-shadow: 0 0 16px rgba(88, 218, 210, 0.2);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-grid-2, .role-selector-wrap {
    grid-template-columns: 1fr;
  }
}

.worker-fields-card {
  background: var(--surface-inset);
  border: 1px dashed rgba(88, 218, 210, 0.3);
  border-radius: var(--radius-md);
  padding: 18px;
}

.checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-main);
}

.checkbox-label input {
  width: auto;
  margin-top: 3px;
}

/* Split Screen KYC Inspection Layout */
.kyc-split-studio {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .kyc-split-studio {
    grid-template-columns: 1fr;
  }
}

.doc-preview-card {
  background: var(--surface-inset);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.doc-img-zoomable {
  max-width: 100%;
  max-height: 380px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.doc-img-zoomable:hover {
  transform: scale(1.02);
}

.ocr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.ocr-field {
  background: var(--surface-inset);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.ocr-field small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.ocr-field strong {
  font-size: 13.5px;
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  color: #FFFFFF;
  border: 1px solid var(--border-line);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
}

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

.toast.success { border-color: var(--brand-emerald); color: var(--brand-emerald); }
.toast.error   { border-color: var(--brand-danger); color: var(--brand-danger); }
.toast.info    { border-color: var(--brand-accent); color: var(--brand-accent); }

/* ==========================================================================
   6. MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS
   ========================================================================== */
.admin-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--surface-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.admin-mobile-toggle svg.hamburger-svg {
  display: block;
  stroke: currentColor;
  stroke-width: 2.2;
}

.admin-mobile-toggle:hover {
  background: var(--surface-inset);
  border-color: var(--brand-accent);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 26, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 992px) {
  .admin-mobile-toggle {
    display: inline-flex;
  }

  .topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
    padding: 14px 16px;
    box-sizing: border-box;
  }

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

  .top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-line);
    box-sizing: border-box;
  }

  .telemetry-pill {
    padding: 5px 10px;
    font-size: 11px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-line);
    border-radius: 0;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    padding: 24px 16px;
  }

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

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
  }

  .stat strong {
    font-size: 20px;
  }

  .stat {
    padding: 14px 16px;
  }

  .telemetry-cockpit-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  table {
    min-width: 650px;
  }

  .modal-box {
    width: 95vw !important;
    max-width: 580px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    padding: 20px 18px !important;
    margin: 12px auto !important;
  }

  .panel-card {
    padding: 18px 16px;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Make radar fully responsive */
  .radar-visual-wrap {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .radar-scope {
    margin: 0 auto;
    width: 180px;
    height: 180px;
  }

  .radar-telemetry-meta {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Make map controls bar fully responsive and wrapped */
  .map-controls-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .map-filter-group {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 6px !important;
    gap: 6px !important;
  }

  .map-filter-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
  }

  .map-city-jump-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
  }

  .map-city-jump-input {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .search-input-wrap {
    min-width: 0 !important;
    width: 100% !important;
  }

  .filter-bar {
    width: 100%;
    box-sizing: border-box;
  }

  .content-stage, .shell, .panel {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 576px) {
  .shell {
    padding: 10px 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .topbar {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
  }

  .topbar-left {
    gap: 10px;
  }

  .admin-mobile-toggle {
    width: 38px;
    height: 38px;
  }

  .logo-small-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    padding: 3px;
  }

  .page-headline {
    font-size: 16px;
    line-height: 1.25;
  }

  .topbar-breadcrumb {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    padding-top: 8px;
  }

  .theme-toggle-btn {
    padding: 5px 9px;
    font-size: 11px;
    height: 32px;
  }

  .telemetry-pill {
    padding: 4px 8px;
    font-size: 10px;
    height: 32px;
  }

  #topOnboardBtn {
    padding: 5px 11px;
    font-size: 11px;
    height: 32px;
    font-weight: 700;
  }

  .btn-text-full {
    display: none;
  }

  .btn-text-compact {
    display: inline;
  }

  .admin-profile-pill {
    padding: 2px 6px;
    height: 32px;
  }

  .admin-profile-pill span {
    display: none;
  }

  .admin-avatar {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  #logoutButton {
    padding: 5px 9px;
    font-size: 11px;
    height: 32px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  .stat {
    padding: 12px 10px;
    border-radius: var(--radius-md);
  }

  .stat strong {
    font-size: 18px;
  }

  .login-card {
    padding: 24px 16px;
    margin: 12px auto;
  }
}

@media (max-width: 380px) {
  .shell {
    padding: 8px 6px;
  }

  .topbar {
    padding: 8px 10px;
  }

  .top-actions {
    gap: 4px;
  }

  .telemetry-pill {
    font-size: 9px;
    padding: 3px 6px;
  }

  .theme-toggle-btn span#themeToggleText {
    display: none;
  }

  .theme-toggle-btn {
    padding: 4px 8px;
  }

  #topOnboardBtn {
    padding: 4px 8px;
    font-size: 10px;
  }

  #logoutButton {
    padding: 4px 6px;
    font-size: 10px;
  }
}


/* ==========================================================================
   Light Mode Theme & Geospatial Live Dispatch Map (Leaflet.js)
   ========================================================================== */

[data-theme="light"],
body.theme-light {
  --bg-app: #F4F8FA;
  --bg-topbar: rgba(255, 255, 255, 0.96);
  --bg-sidebar: #FFFFFF;
  --surface-card: #FFFFFF;
  --surface-card-hover: #F8FAFC;
  --surface-inset: #EDF4F7;
  --border-line: #DCE7EC;
  --border-highlight: rgba(8, 127, 159, 0.4);

  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-accent: #087F9F;

  --shadow-sm: 0 2px 8px rgba(8, 18, 26, 0.05);
  --shadow-md: 0 8px 24px rgba(8, 18, 26, 0.08);
  --shadow-lg: 0 16px 40px rgba(8, 18, 26, 0.12);
}

body.theme-light input,
body.theme-light select,
body.theme-light textarea {
  background: #FFFFFF !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-line) !important;
}

body.theme-light input:focus,
body.theme-light select:focus,
body.theme-light textarea:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px rgba(8, 127, 159, 0.15) !important;
}

body.theme-light thead {
  background: #F1F5F9 !important;
}

body.theme-light td {
  border-bottom: 1px solid #E2E8F0 !important;
}

body.theme-light tr:hover td {
  background: #F8FAFC !important;
}

body.theme-light .ghost-btn {
  background: #FFFFFF !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-line) !important;
}

body.theme-light .ghost-btn:hover {
  background: #F1F5F9 !important;
  color: var(--text-main) !important;
}

body.theme-light .nav-item:hover {
  background: #F1F5F9 !important;
}

body.theme-light .nav-item.active {
  background: linear-gradient(90deg, rgba(8, 127, 159, 0.14) 0%, rgba(8, 127, 159, 0.03) 100%) !important;
  color: var(--brand-primary) !important;
  border-left: 3px solid var(--brand-primary) !important;
}

body.theme-light .topbar {
  background: #FFFFFF !important;
  border: 1px solid var(--border-line) !important;
  box-shadow: var(--shadow-sm) !important;
}

body.theme-light .admin-mobile-toggle {
  background: #FFFFFF !important;
  border: 1px solid var(--border-line) !important;
  color: #142D3B !important;
  box-shadow: 0 2px 6px rgba(8, 18, 26, 0.05) !important;
}

body.theme-light .logo-small-wrap {
  background: #EDF4F7 !important;
  border-color: #DCE7EC !important;
}

body.theme-light .sidebar {
  background: #FFFFFF !important;
  border-right: 1px solid var(--border-line) !important;
}

body.theme-light .panel-card {
  background: #FFFFFF !important;
  border: 1px solid var(--border-line) !important;
  box-shadow: var(--shadow-sm) !important;
}

body.theme-light .stat-card {
  background: #FFFFFF !important;
  border: 1px solid var(--border-line) !important;
  box-shadow: var(--shadow-sm) !important;
}

body.theme-light .login-card {
  background: #FFFFFF !important;
  border: 1px solid var(--border-line) !important;
  box-shadow: var(--shadow-lg) !important;
}

body.theme-light .modal-content {
  background: #FFFFFF !important;
  border: 1px solid var(--border-line) !important;
  box-shadow: var(--shadow-lg) !important;
}

body.theme-light .telemetry-pill {
  background: #FFFFFF !important;
  border: 1px solid var(--border-line) !important;
  color: var(--text-main) !important;
}

body.theme-light .admin-profile-pill {
  background: #FFFFFF !important;
  border: 1px solid var(--border-line) !important;
  color: var(--text-main) !important;
}

body.theme-light .radar-visual-wrap {
  background: #08121A !important;
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-card);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
}

.theme-toggle-btn:hover {
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

/* Leaflet Live Map in Admin */
.live-map-card {
  margin-top: 24px;
}

.admin-live-map-container {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-line);
  position: relative;
  z-index: 1;
}

/* Map Interactive Controls Bar */
.map-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--surface-inset);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-line);
}

body.theme-light .map-controls-row {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.map-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.map-filter-btn {
  background: transparent;
  border: 1px solid var(--border-line);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-filter-btn:hover {
  color: var(--text-main);
  border-color: var(--brand-primary);
}

.map-filter-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(8, 127, 159, 0.35);
}

.map-view-segment {
  display: inline-flex;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.map-view-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-view-btn:hover {
  color: var(--text-main);
}

.map-view-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.map-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

/* City Search & Jump Navigation Box */
.map-city-jump-box {
  display: inline-flex;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-pill);
  padding: 3px 4px 3px 12px;
  gap: 8px;
  transition: all 0.2s ease;
}

body.theme-light .map-city-jump-box {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.map-city-jump-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(8, 127, 159, 0.2);
}

.map-city-jump-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 600;
  width: 210px;
}

.map-city-jump-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 11.5px;
}

.map-city-jump-btn {
  background: var(--brand-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-city-jump-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

/* Floating Telemetry HUD on Map */
.map-floating-telemetry {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(12, 26, 38, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(88, 218, 210, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #FFFFFF;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  min-width: 290px;
  max-width: 360px;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-light .map-floating-telemetry {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #DCE7EC;
  color: #0F172A;
  box-shadow: 0 8px 30px rgba(8, 18, 26, 0.15);
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 3px 0;
}

/* Animated OSRM Road Route Polylines */
.animated-route-path {
  stroke-dasharray: 8 6;
  animation: routeDash 25s linear infinite;
}

@keyframes routeDash {
  to {
    stroke-dashoffset: -1000;
  }
}

.custom-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-pulse-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 12px;
  box-shadow: 0 0 16px currentColor;
  position: relative;
}

.pin-pulse-bubble::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.6;
  animation: mapPulse 2s infinite ease-out;
}

@keyframes mapPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.pin-pulse-bubble.pin-pending-start {
  background: #06B6D4 !important;
  color: #06B6D4 !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.7) !important;
}

.pin-pulse-bubble.pin-bidding-radar {
  background: #F59E0B !important;
  color: #F59E0B !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.7) !important;
}

.pin-pulse-bubble.pin-customer-doorstep {
  background: #10B981 !important;
  color: #10B981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.7) !important;
}

.pin-pulse-bubble.pin-worker-transit {
  background: #087F9F !important;
  color: #087F9F !important;
  box-shadow: 0 0 16px rgba(8, 127, 159, 0.7) !important;
}

.leaflet-popup-content-wrapper {
  background: var(--surface-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-line) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-md) !important;
}

.leaflet-popup-tip {
  background: var(--surface-card) !important;
}

.leaflet-popup-content {
  margin: 12px 14px !important;
  line-height: 1.5 !important;
}
