/* style.css - Main Styling Sheet & Glassmorphism Design System */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #080c16;
  --bg-dots: rgba(255, 255, 255, 0.02);
  --panel-bg: rgba(15, 23, 42, 0.65);
  --panel-bg-solid: #0f172a;
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-hover: rgba(255, 255, 255, 0.15);
  
  --primary-color: #ff6b00; /* U-Haul Vibrant Orange */
  --primary-hover: #ff8c33;
  --primary-glow: rgba(255, 107, 0, 0.35);
  
  --secondary-color: #3b82f6; /* Accent Blue */
  --secondary-glow: rgba(59, 130, 246, 0.25);
  
  --success-color: #10b981; /* Green */
  --success-glow: rgba(16, 185, 129, 0.2);
  
  --warning-color: #f59e0b; /* Amber */
  --error-color: #ef4444; /* Red */
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --glass-blur: blur(16px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables Toggle */
body.light-theme {
  --bg-color: #f1f5f9;
  --bg-dots: rgba(15, 23, 42, 0.02);
  --panel-bg: rgba(255, 255, 255, 0.75);
  --panel-bg-solid: #ffffff;
  --panel-border: rgba(0, 0, 0, 0.08);
  --panel-border-hover: rgba(0, 0, 0, 0.15);
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(var(--bg-dots) 1px, transparent 0),
    radial-gradient(var(--bg-dots) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* App Header Styling */
.navbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--panel-border);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

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

.nav-tab-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

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

.theme-toggle-btn {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: var(--panel-border-hover);
}

.language-select-dropdown {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.language-select-dropdown:hover {
  background: var(--panel-border-hover);
  border-color: var(--primary-color);
}

.language-select-dropdown:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.language-select-dropdown option {
  background: var(--panel-bg-solid);
  color: var(--text-main);
}


/* Main Container Layout */
.app-container {
  display: flex;
  flex: 1;
  height: calc(100vh - 73px);
  overflow: hidden;
}

/* Sidebar Controller / Booking / Forms */
.control-sidebar {
  width: 450px;
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  position: relative;
  z-index: 10;
  transition: var(--transition-smooth);
}

/* Map Panel */
.map-view-panel {
  flex: 1;
  height: 100%;
  position: relative;
  background: #0d121f;
}

#tracking-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.map-overlay-status {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--panel-border);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-main);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  z-index: 15;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success-color);
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.map-overlay-status-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 13px;
}

/* Booking Flow Sections */
.booking-wizard-container {
  padding: 24px;
}

.booking-header {
  margin-bottom: 24px;
}

.booking-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.booking-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Service Options Toggle Grid */
.service-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--panel-border-hover);
}

.service-card.active {
  background: var(--primary-glow);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}

.service-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Address Picker Block */
.address-picker-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.input-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.input-with-icon input, .input-with-icon select {
  width: 100%;
  padding: 12px 12px 12px 38px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.input-with-icon input:focus, .input-with-icon select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Autocomplete suggestion drop */
.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--panel-bg-solid);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  max-height: 180px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow-main);
  display: none;
}

.suggestion-item {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--panel-border);
  transition: var(--transition-smooth);
}

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

.suggestion-item:hover {
  background: var(--primary-glow);
}

/* Steps Progress Nav */
.step-stepper-line {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
}

.step-stepper-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--panel-border);
  z-index: -1;
  transform: translateY(-50%);
}

.step-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--panel-bg-solid);
  border: 2px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.step-node.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
  box-shadow: 0 0 10px var(--primary-glow);
}

.step-node.completed {
  border-color: var(--success-color);
  background: var(--success-color);
  color: white;
}

/* Wizard Screen Switcher panels */
.wizard-screen {
  display: none;
}

.wizard-screen.active {
  display: block;
  animation: fade-in 0.4s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Vehicle Picker Option List */
.vehicle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.vehicle-option-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  gap: 16px;
  position: relative;
  transition: var(--transition-smooth);
}

.vehicle-option-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--panel-border-hover);
}

.vehicle-option-card.active {
  background: var(--primary-glow);
  border-color: var(--primary-color);
}

.vehicle-image-wrapper {
  width: 80px;
  height: 50px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-image-wrapper img {
  max-width: 90%;
  max-height: 90%;
}

.vehicle-info {
  flex: 1;
}

.vehicle-title-rate {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.vehicle-name-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.vehicle-rate-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
}

.vehicle-tagline {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.vehicle-meta-badge-grid {
  display: flex;
  gap: 8px;
}

.meta-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Mover Help Selector styling */
.mover-hours-select-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.helper-card-option {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.helper-card-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.helper-card-option.active {
  border-color: var(--secondary-color);
  background: var(--secondary-glow);
}

.helper-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.helper-count-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.helper-cost-rate {
  font-weight: 700;
  color: var(--secondary-color);
}

.helper-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Summary Receipt Layout */
.receipt-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.receipt-header {
  border-bottom: 1px dashed var(--panel-border);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.receipt-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.receipt-row.total {
  border-top: 1px dashed var(--panel-border);
  padding-top: 12px;
  margin-top: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-main);
}

/* Button Navigation */
.button-row {
  display: flex;
  gap: 12px;
}

.wizard-btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  outline: none;
}

.wizard-btn.primary {
  background: var(--primary-color);
  color: white;
  flex: 1;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.wizard-btn.primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.wizard-btn.secondary {
  background: var(--panel-bg);
  color: var(--text-main);
  border: 1px solid var(--panel-border);
}

.wizard-btn.secondary:hover {
  background: var(--panel-border-hover);
}

/* Driver Assignment Simulated Loader */
.assignment-loader-panel {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.spinning-radar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--primary-glow);
  position: relative;
  margin-bottom: 24px;
  animation: radar-pulse 2s infinite ease-out;
}

.spinning-radar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary-color);
  animation: rotate-radar 1.2s infinite linear;
}

@keyframes rotate-radar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes radar-pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.assignment-loader-panel h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.assignment-loader-panel p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* Tracking screen & Live Chat panel layout */
.tracking-active-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tracking-header-status {
  padding: 20px;
  border-bottom: 1px solid var(--panel-border);
}

.tracking-header-status h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.status-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.timeline-step.completed {
  color: var(--success-color);
  font-weight: 500;
}

.timeline-step.active {
  color: var(--primary-color);
  font-weight: 600;
}

.timeline-icon-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--panel-border);
  background: var(--bg-color);
}

.timeline-step.completed .timeline-icon-dot {
  border-color: var(--success-color);
  background: var(--success-color);
}

.timeline-step.active .timeline-icon-dot {
  border-color: var(--primary-color);
  background: var(--bg-color);
  animation: pulse-ring-orange 1.2s infinite;
}

@keyframes pulse-ring-orange {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(255, 107, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

/* Live Chat UI styling */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 320px;
  border-top: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.2);
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--panel-border);
  gap: 10px;
}

.driver-avatar {
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.driver-chat-name {
  font-size: 13px;
  font-weight: 600;
}

.driver-chat-sub {
  font-size: 10px;
  color: var(--text-secondary);
}

.chat-call-btn {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 30px;
}

.message-bubble-wrapper {
  display: flex;
  width: 100%;
}

.message-bubble-wrapper.msg-driver {
  justify-content: flex-start;
}

.message-bubble-wrapper.msg-customer {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.4;
  position: relative;
}

.msg-driver .message-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
}

.msg-customer .message-bubble {
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 2px;
}

.message-time {
  font-size: 9px;
  opacity: 0.6;
  text-align: right;
  margin-top: 4px;
}

.chat-input-area {
  display: flex;
  border-top: 1px solid var(--panel-border);
  padding: 6px;
  background: rgba(0, 0, 0, 0.3);
}

.chat-input-area input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 10px;
  color: var(--text-main);
  font-size: 13px;
}

.chat-input-area button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chat-input-area button:hover {
  background: var(--primary-hover);
}

/* Driver Simulation Control Panel styling */
.driver-portal-wrapper {
  padding: 24px;
}

.driver-offline-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
}

.driver-online-toggle-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 16px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.driver-online-active-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.driver-active-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.driver-duty-status {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--success-color);
}

.duty-toggle-back-btn {
  background: transparent;
  border: 1px solid var(--success-color);
  color: var(--success-color);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
}

.incoming-request-card {
  background: rgba(255, 107, 0, 0.05);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 4px 20px var(--primary-glow);
  animation: card-alert-pulse 2s infinite;
}

@keyframes card-alert-pulse {
  0% { border-color: rgba(255, 107, 0, 0.8); }
  50% { border-color: rgba(255, 107, 0, 0.4); }
  100% { border-color: rgba(255, 107, 0, 0.8); }
}

.request-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.request-badge {
  background: var(--primary-color);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.request-payout {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--success-color);
}

.request-address-info {
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.request-address-info div {
  margin-bottom: 4px;
}

.request-actions-row {
  display: flex;
  gap: 10px;
}

.request-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.request-btn.accept {
  background: var(--success-color);
  color: white;
}

.request-btn.reject {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* Active Driver Ride workflow controller */
.driver-workflow-controls {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.workflow-status-headline {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.workflow-status-headline span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
}

.workflow-action-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: var(--transition-smooth);
}

.workflow-action-btn:hover {
  background: var(--primary-hover);
}

/* Admin Dashboard layout styles */
.admin-dashboard-wrapper {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.15);
  color: var(--secondary-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
}

.metric-trend {
  font-size: 10px;
  font-weight: 600;
}

.trend-up {
  color: var(--success-color);
}

.trend-neutral {
  color: var(--text-muted);
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 3px;
}

.admin-charts-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
}

.chart-container-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.chart-container-box h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.svg-chart-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.admin-svg-chart {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.vehicle-distribution-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dist-row {
  display: flex;
  align-items: center;
  font-size: 12px;
  gap: 10px;
}

.dist-label {
  width: 90px;
  color: var(--text-secondary);
}

.dist-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.dist-bar-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
}

.dist-pct {
  width: 30px;
  text-align: right;
  font-weight: 600;
}

.admin-jobs-table-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.admin-jobs-table-wrapper h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 13px;
}

.admin-table th {
  font-family: 'Outfit', sans-serif;
  color: var(--text-secondary);
  font-weight: 600;
}

.table-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

.status-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.status-pill.status-assigned {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning-color);
}

.status-pill.status-arrived {
  background: rgba(59, 130, 246, 0.15);
  color: var(--secondary-color);
}

.status-pill.status-loading, .status-pill.status-transit, .status-pill.status-unloading {
  background: rgba(255, 107, 0, 0.15);
  color: var(--primary-color);
}

.status-pill.status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-color);
}

/* Rating feedback styles screen */
.rating-feedback-screen {
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.stars-rating-container {
  display: flex;
  gap: 8px;
  font-size: 32px;
  cursor: pointer;
  margin: 10px 0;
}

.feedback-star {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.feedback-star.active {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.feedback-textarea {
  width: 100%;
  min-height: 80px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  resize: vertical;
}

/* Active Tab Layout Overrides (Global) */
body[data-active-tab="admin"] .map-view-panel {
  display: none;
}

body[data-active-tab="admin"] .control-sidebar {
  width: 100%;
  border-right: none;
}

/* Responsive queries */
@media(max-width: 900px) {
  body {
    height: 100dvh;
    overflow: hidden;
  }

  .navbar-header {
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-logo-svg {
    width: 28px;
    height: 28px;
  }

  .nav-tab-btn {
    padding: 8px 12px;
    font-size: 13px;
    gap: 6px;
  }

  .app-container {
    flex-direction: column-reverse; /* Put map at the top visually, sidebar at the bottom */
    height: auto;
    flex: 1;
    overflow: hidden;
  }
  
  .control-sidebar {
    width: 100%;
    height: 60%;
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
    overflow-y: auto;
    flex-grow: 1;
  }
  
  .map-view-panel {
    height: 40%;
    flex-shrink: 0;
    border-bottom: 1px solid var(--panel-border);
  }

  /* Conditional view: hide map on Admin panel */
  body[data-active-tab="admin"] .map-view-panel {
    display: none;
  }

  body[data-active-tab="admin"] .control-sidebar {
    height: 100%;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .admin-charts-section {
    grid-template-columns: 1fr;
  }

  .admin-jobs-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
  }

  .admin-table {
    min-width: 600px;
  }

  /* Chat scaling inside tracking container */
  .tracking-active-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  #tracking-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 220px;
  }

  .chat-container {
    flex: 1;
    height: auto;
  }

  /* Prevent iOS auto-zoom on input focus */
  .input-with-icon input, 
  .input-with-icon select,
  .chat-input-area input,
  .feedback-textarea {
    font-size: 16px;
  }
}

@media(max-width: 580px) {
  .navbar-header {
    padding: 8px 12px;
    gap: 8px;
  }

  .brand-name {
    display: none; /* Hide brand label, only keep icon */
  }

  .tab-text {
    display: none; /* Icon-only tabs on tiny screens */
  }

  .nav-tab-btn {
    padding: 8px 10px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .navbar-tabs {
    gap: 2px;
  }

  .language-select-dropdown {
    font-size: 16px;
    padding: 6px 8px;
  }

  .booking-wizard-container {
    padding: 16px;
  }

  .booking-header h2 {
    font-size: 22px;
  }

  /* Compact Service Cards */
  .service-types-grid {
    gap: 6px;
  }

  .service-card {
    padding: 10px 4px;
  }

  .service-title {
    font-size: 9px;
    letter-spacing: 0.01em;
  }

  .service-icon {
    font-size: 20px;
    margin-bottom: 4px;
  }

  /* Compact Fleet Options */
  .vehicle-option-card {
    padding: 10px;
    gap: 8px;
  }

  .vehicle-image-wrapper {
    width: 60px;
    height: 40px;
  }

  .vehicle-name-label, .vehicle-rate-label {
    font-size: 13px;
  }

  .vehicle-tagline {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .meta-badge {
    padding: 1px 4px;
    font-size: 8px;
  }

  /* Compact Mover Helpers Options */
  .mover-hours-select-section {
    gap: 12px;
  }

  .helper-card-option {
    padding: 10px;
  }

  .helper-count-title, .helper-cost-rate {
    font-size: 13px;
  }

  .helper-desc {
    font-size: 10px;
  }

  /* Compact Admin metrics */
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metric-card {
    padding: 12px;
  }

  .metric-value {
    font-size: 20px;
  }
}

/* Google Maps API Settings Modal Overlay */
.settings-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.settings-modal-card {
  width: 90%;
  max-width: 440px;
  background: var(--panel-bg-solid);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-main);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-family: 'Outfit', sans-serif;
}

.close-modal-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

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

.modal-body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

/* Search Provider Toggle (Segmented Control) */
.search-provider-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 12px;
}

.provider-toggle-btn {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.provider-toggle-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Google Maps Autocomplete Dropdown Theme Adjustments */
.pac-container {
  background: var(--panel-bg-solid) !important;
  border: 1px solid var(--panel-border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-main) !important;
  font-family: 'Outfit', sans-serif !important;
  margin-top: 4px !important;
  z-index: 1100 !important;
}

.pac-item {
  border-top: 1px solid var(--panel-border) !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: var(--transition-smooth) !important;
}

.pac-item:first-child {
  border-top: none !important;
}

.pac-item:hover {
  background: var(--panel-border-hover) !important;
}

.pac-item-query {
  font-size: 13px !important;
  color: var(--text-main) !important;
}

.pac-matched {
  color: var(--primary-color) !important;
}

.pac-icon {
  display: none !important;
}
