/* --- DESIGN SYSTEM & CSS VARIABLES (LIGHT THEME) --- */
:root {
  /* HSL / RGB Light Theme Color Palette */
  --bg-app: #f1f5f9; /* Soft cool gray/blue */
  --bg-card: #ffffff; /* Pure white card */
  --bg-card-hover: #f8fafc;
  --border-glass: rgba(15, 23, 42, 0.08); /* Soft dark boundary lines */
  --border-focus: rgba(109, 40, 217, 0.4);
  
  --color-primary: #6d28d9; /* Deep violet */
  --color-primary-light: #8b5cf6; /* Vibrant violet */
  --color-secondary: #64748b; /* Slate grey */
  --color-danger: #ef4444;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  
  --text-main: #0f172a; /* Dark slate 900 */
  --text-muted: #64748b; /* Slate 500 */
  --text-inverse: #ffffff;
  
  --gradient-primary: linear-gradient(135deg, #6d28d9 0%, #db2777 100%);
  --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --gradient-danger: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05), 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 15px rgba(109, 40, 217, 0.15);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
}

/* --- RESET & BASIC STYLING --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: #cbd5e1; /* Matte steel grey surrounding app container on desktop */
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  height: 100%;
  overflow: hidden;
}

/* Mobile viewport container restrictions */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-app);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.app-header {
  height: 68px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

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

.logo-icon {
  font-size: 1.5rem;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

/* --- MAIN CONTENT & SCREEN ROUTING --- */
.app-main {
  flex: 1;
  position: relative;
  overflow-y: auto;
  padding: 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.screen {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}

.screen.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* --- HELPER STYLES --- */
.hidden {
  display: none !important;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 10px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-glass);
}

.divider span {
  padding: 0 10px;
}

.margin-top-md {
  margin-top: 20px;
}

.flex-row {
  display: flex;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-3 { flex: 3; }

.text-alert {
  color: var(--color-danger);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.2);
}

.btn-primary:active {
  transform: scale(0.97);
  opacity: 0.95;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:active {
  background: rgba(15, 23, 42, 0.1);
  transform: scale(0.97);
}

.btn-danger {
  background: var(--gradient-danger);
  color: var(--text-inverse);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.15);
}

.btn-danger:active {
  transform: scale(0.97);
  opacity: 0.95;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  height: 54px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:active {
  background: rgba(15, 23, 42, 0.08);
  transform: scale(0.95);
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  width: fit-content;
  padding: 8px 0;
  transition: color 0.2s;
}

.btn-back:active {
  color: var(--text-main);
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-link:active {
  color: var(--color-primary-light);
}

/* --- CARDS & LIGHT GLASS --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
}

.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-card {
  text-align: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.02);
  border: 1px dashed var(--border-glass);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- FORM FIELDS --- */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  height: 48px;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  color: var(--text-main);
  padding: 0 16px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
}

.form-group textarea {
  height: auto;
  padding: 12px 16px;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary-light);
  background: #ffffff;
  box-shadow: 0 0 10px rgba(109, 40, 217, 0.1);
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.form-section {
  background: rgba(15, 23, 42, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 6px;
}

.button-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.button-row .btn {
  flex: 1;
}

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

/* --- HERO BANNER --- */
.welcome-hero {
  position: relative;
  text-align: center;
  padding: 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: var(--gradient-primary);
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.welcome-hero h2 {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--text-main);
  z-index: 1;
}

.welcome-hero p {
  font-size: 0.95rem;
  color: var(--text-muted);
  z-index: 1;
}

.screen-title {
  margin-bottom: 10px;
}

.screen-title h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.screen-title p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Event Banner Card on Auth */
.event-banner {
  padding: 18px 24px;
  border-left: 4px solid var(--color-primary);
  margin-bottom: 10px;
  background: #ffffff;
}

.banner-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.event-banner h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.event-banner p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- TABS --- */
.tab-container {
  display: flex;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 4px;
}

.tab-btn {
  flex: 1;
  height: 40px;
  background: none;
  border: none;
  border-radius: calc(var(--border-radius-md) - 2px);
  color: var(--text-muted);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
}

/* --- DASHBOARD ELEMENTS --- */
/* User Status Box */
.status-panel {
  width: 100%;
}

.status-alert {
  padding: 14px 18px;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.status-alert.info {
  background: #e2e8f0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--color-secondary);
  color: #334155;
}

.status-alert.driver {
  background: #f5f3ff;
  border: 1px solid rgba(109, 40, 217, 0.1);
  border-left: 4px solid var(--color-primary);
  color: var(--color-primary);
}

.status-alert.passenger {
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--color-success);
  color: #047857;
}

.status-alert.waiting {
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--color-warning);
  color: #b45309;
}

/* Event stats dashboard widget */
.dashboard-event-header {
  padding: 16px 20px;
  background: #ffffff;
}

.dashboard-event-header .header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.dashboard-event-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.event-date-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(109, 40, 217, 0.08);
  padding: 4px 10px;
  border-radius: 50px;
  color: var(--color-primary);
}

.event-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

/* Dashboard views navigation tabs */
.dash-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.04);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(15, 23, 42, 0.02);
}

.dash-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 4px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.dash-tab-btn.active {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(109, 40, 217, 0.08);
}

.dash-view {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.25s ease forwards;
}

.dash-view.active {
  display: flex;
}

.view-header {
  display: flex;
  flex-direction: column;
}

.view-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.view-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* --- DYNAMIC STATUS INTERFACE (Driver vs Passenger Choice) --- */
.status-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.option-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  outline: none;
}

.option-card:active {
  transform: scale(0.98);
}

.option-card.driver:focus-within,
.option-card.driver:hover {
  border-color: var(--color-primary-light);
  background: #faf5ff;
}

.option-card.passenger:focus-within,
.option-card.passenger:hover {
  border-color: var(--color-success);
  background: #f0fdf4;
}

.option-card.self-travel:focus-within,
.option-card.self-travel:hover {
  border-color: var(--color-secondary);
  background: #f8fafc;
}

.option-icon {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.option-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.option-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Route dynamic stop rows */
.route-stops-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.route-stop-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.route-stop-row input[type="text"] {
  flex: 2;
}

.route-stop-row input[type="time"] {
  flex: 1;
}

.btn-remove-stop {
  background: none;
  border: none;
  color: var(--color-danger);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Timeline display */
.route-timeline {
  margin: 16px 0;
  padding-left: 14px;
  border-left: 2px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.timeline-node {
  position: relative;
  font-size: 0.85rem;
  line-height: 1.3;
}

.timeline-node::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid var(--bg-card);
}

.timeline-node.start::before {
  background: var(--color-primary-light);
  box-shadow: 0 0 8px var(--color-primary-light);
}

.timeline-node.stop::before {
  background: var(--color-success);
}

.timeline-node strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

.timeline-node span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* User status screens details styling */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tag-driver {
  background: #f5f3ff;
  color: var(--color-primary);
  border: 1px solid rgba(109, 40, 217, 0.15);
}

.tag-passenger {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.tag-waiting {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.tag-self {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid rgba(71, 85, 105, 0.15);
}

.vehicle-info-summary {
  display: flex;
  gap: 20px;
  background: rgba(15, 23, 42, 0.02);
  border-radius: var(--border-radius-md);
  padding: 14px;
  border: 1px solid var(--border-glass);
}

.info-block {
  display: flex;
  flex-direction: column;
}

.info-block .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.info-block strong {
  font-size: 1rem;
}

.action-danger-zone {
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-danger-zone p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.border-danger {
  border-color: rgba(239, 68, 68, 0.2) !important;
}

.text-danger {
  color: var(--color-danger);
}

.passenger-status-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.passenger-status-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.driver-card-compact {
  background: #f8fafc;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.driver-details {
  display: flex;
  flex-direction: column;
}

.driver-details .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.driver-details strong {
  font-size: 0.95rem;
}

.phone-link {
  color: var(--color-success) !important;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 700;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.needer-summary-box {
  background: #f8fafc;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 14px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --- DYNAMIC ITEM LISTS (Vehicles & Needers Pools) --- */
.vehicle-card-list,
.needer-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Vehicle card styling */
.vehicle-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  position: relative;
}

.vehicle-card.my-car {
  border-color: var(--color-primary-light);
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.05);
}

.vehicle-card.joined {
  border-color: var(--color-success);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.05);
}

.vehicle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.driver-header-info {
  display: flex;
  flex-direction: column;
}

.driver-name-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.driver-phone-txt {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.seats-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.04);
}

.seats-badge.full {
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-danger);
}

.seats-badge.available {
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-success);
}

.vehicle-route-info {
  display: flex;
  flex-direction: column;
}

.district-badge {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-stops-list {
  padding-left: 10px;
  border-left: 2px solid rgba(15, 23, 42, 0.05);
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-stops-list .stop-node {
  position: relative;
}

.card-stops-list .stop-node strong {
  color: var(--text-main);
}

.passengers-section {
  border-top: 1px solid var(--border-glass);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.passengers-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.passengers-list-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.passenger-chip {
  background: #f1f5f9;
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  padding: 4px 10px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.passenger-chip.me {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.2);
  color: #047857;
  font-weight: 600;
}

.phone-icon-link {
  color: var(--color-success);
  text-decoration: none;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
}

.vehicle-card-action {
  margin-top: 4px;
}

/* Needer Card */
.needer-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.needer-card.me {
  border-color: var(--color-warning);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.05);
}

.needer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 6px;
}

.needer-name {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.needer-district-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.needer-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- SHARE & INVITE DISPLAY BOX --- */
.invite-share-box {
  background: rgba(15, 23, 42, 0.02);
  border-radius: var(--border-radius-md);
  padding: 14px;
  border: 1px solid var(--border-glass);
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invite-code-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.invite-code-display strong {
  background: var(--color-primary);
  color: var(--text-inverse);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.invite-link-row {
  display: flex;
  gap: 8px;
}

.invite-link-row input {
  flex: 1;
  height: 38px;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-muted);
  padding: 0 10px;
  font-size: 0.8rem;
  outline: none;
}

.invite-link-row .btn {
  height: 38px;
  border-radius: var(--border-radius-sm);
  padding: 0 14px;
  font-size: 0.85rem;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.3s ease 2.7s forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success {
  border-left: 4px solid var(--color-success);
}

.toast.error {
  border-left: 4px solid var(--color-danger);
}

.toast.info {
  border-left: 4px solid var(--color-primary-light);
}

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

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; transform: scale(0.95); display: none; }
}

/* --- LOADING OVERLAY --- */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(241, 245, 249, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease forwards;
}

.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(109, 40, 217, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-container p {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- VISUAL SEAT Indicator Classes --- */
.visualizer-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.seat-chart-visual {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.seat-item-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.seat-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: all 0.2s;
}

.seat-icon.empty {
  color: #cbd5e1;
}

.seat-icon.filled {
  color: var(--color-primary);
  fill: rgba(109, 40, 217, 0.08);
}

.seat-icon.me {
  color: var(--color-success);
  fill: rgba(16, 185, 129, 0.08);
}

.seat-icon.pending {
  color: var(--color-warning);
  fill: rgba(245, 158, 11, 0.08);
  stroke-dasharray: 2 2;
}

.seat-name {
  font-size: 0.65rem;
  font-weight: 700;
  max-width: 54px;
  text-align: center;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: var(--text-muted);
}

.driver-seat-visualizer,
.passenger-seat-visualizer {
  background: rgba(15, 23, 42, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 10px 14px;
  margin-top: 10px;
}

.vehicle-card-seats-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

/* --- APPROVALS & NOTIFICATIONS BOX SYSTEM --- */
.approval-box-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 6px;
}

.approval-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--border-radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.2s ease forwards;
}

.approval-card.invite {
  border-left-color: var(--color-success);
  border-color: rgba(16, 185, 129, 0.1);
}

.approval-card.request {
  border-left-color: var(--color-primary);
  border-color: rgba(109, 40, 217, 0.1);
}

.approval-card.waiting {
  border-left-color: var(--color-warning);
  border-color: rgba(245, 158, 11, 0.1);
}

.approval-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.approval-body {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

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

.approval-actions .btn {
  height: 32px;
  padding: 0 12px;
  font-size: 0.8rem;
  border-radius: var(--border-radius-sm);
}

/* Driver passenger management */
.driver-passengers-list-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.driver-passenger-mgmt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(109, 40, 217, 0.04);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(109, 40, 217, 0.08);
}

.driver-passenger-mgmt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.driver-passenger-mgmt-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.driver-passenger-mgmt-phone {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
}

.btn-kick-passenger {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-kick-passenger:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Vertical stats layout breakdown */
.vertical-stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
  background: rgba(0, 0, 0, 0.02);
  padding: 15px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.v-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-main);
}

.v-stat-label {
  font-weight: 500;
}

.v-stat-val {
  font-weight: 700;
  color: var(--color-primary);
}

.v-stat-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 6px 0;
}

.v-stat-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  border-top: 0;
  padding-top: 4px;
}

.v-stat-row.total .v-stat-val {
  color: var(--color-secondary);
  font-size: 1.2rem;
}




