:root {
  --primary: #f5c518; /* Taxi Yellow */
  --primary-dark: #e0b415;
  --secondary: #1a1a1a; /* Asphalt Black */
  --text: #f0f0f0;
  --text-muted: #a0a0a0;
  --bg: #0d0d0d;
  --surface: #1e1e1e;
  --border: #333333;
  --accent: #ff4d4d; /* Stop light red */
  --radius: 12px;
  --font-display: 'Syncopate', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Layout */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Sidebar / Nav */
.sidebar {
  width: 280px;
  background-color: var(--secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-block {
  background: var(--primary);
  color: var(--secondary);
  padding: 2px 8px;
  border-radius: 4px;
}

.nav-links {
  list-style: none;
  flex-grow: 1;
}

.nav-item {
  margin-bottom: 1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  background: rgba(245, 197, 24, 0.1);
  color: var(--primary);
}

/* Main Content Area */
.main-content {
  flex-grow: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Map Simulation */
.map-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #222 0%, #0d0d0d 100%);
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

.map-overlay {
  position: relative;
  z-index: 2;
  padding: 2rem;
  height: 100%;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 2rem;
  pointer-events: none;
}

.map-overlay > * {
  pointer-events: auto;
}

/* Booking Card */
.booking-card {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.input-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

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

.input-wrapper input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 3rem;
  color: var(--text);
  font-family: var(--font-body);
  transition: var(--transition);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--primary);
}

.vehicle-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.vehicle-option {
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.vehicle-option:hover {
  border-color: var(--border);
}

.vehicle-option.selected {
  border-color: var(--primary);
  background: rgba(245, 197, 24, 0.05);
}

.vehicle-option .icon {
  margin-bottom: 0.5rem;
  display: block;
}

.vehicle-option .name {
  font-size: 0.75rem;
  font-weight: 600;
  display: block;
}

.vehicle-option .price {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
}

.btn-book {
  background: var(--primary);
  color: var(--secondary);
  border: none;
  padding: 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}

.btn-book:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Floating Elements */
.status-floating {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--border);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Map Markers and Lines */
.map-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.marker-pickup {
  top: 40%;
  left: 60%;
}

.marker-drop {
  top: 30%;
  left: 80%;
}

.car-icon {
  position: absolute;
  width: 40px;
  height: 20px;
  background: var(--primary);
  border-radius: 4px;
  top: 55%;
  left: 45%;
  transform: rotate(15deg);
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.4);
}

.car-icon::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(245, 197, 24, 0.2) 0%, transparent 70%);
  top: -10px;
  left: -10px;
}

.route-line {
  position: absolute;
  height: 2px;
  background: var(--primary);
  top: 55%;
  left: 45%;
  width: 200px;
  transform: rotate(-10deg);
  opacity: 0.3;
}

/* Components for pages */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.card-promo {
  width: 280px;
  background: rgba(30, 30, 30, 0.8);
}

.card-promo h4 {
  font-size: 0.7rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-promo p {
  font-weight: 600;
  font-size: 0.9rem;
}

.card-promo .promo-code {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  opacity: 0.6;
}

.status-text-container {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.status-credit {
  color: var(--primary);
  font-weight: 900;
}

.booking-footer {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.booking-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.booking-footer-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.booking-footer-value {
  font-weight: 600;
}

.booking-footer-value.highlight {
  color: var(--primary);
}

.secondary-info-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success { background: rgba(0, 255, 136, 0.1); color: #00ff88; }

.user-profile {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.placeholder-avatar {
  width: 48px;
  height: 48px;
  background: #333;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-info .name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

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

/* Ride History Styles */
.content-scroll {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.table-container {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

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

.ride-table th {
  background: rgba(255,255,255,0.03);
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.ride-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.ride-table tr:last-child td {
  border-bottom: none;
}

.ride-table tr:hover {
  background: rgba(255,255,255,0.02);
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.location-info .point {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-start { background: var(--primary); }
.dot-end { background: var(--accent); }

.btn-sm {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-sm:hover {
  background: var(--border);
}

/* Payment Page Styles */
.payment-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.payment-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--secondary);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.payment-method-card:hover {
  border-color: var(--primary);
}

.payment-method-card .details {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.card-logo {
  width: 50px;
  height: 32px;
  background: #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-style: italic;
  font-size: 0.8rem;
}

.wallet-balance-card {
  background: linear-gradient(135deg, var(--primary) 0%, #e0b415 100%);
  color: var(--secondary);
  padding: 2rem;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 40px rgba(245, 197, 24, 0.2);
}

.wallet-balance-card h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  opacity: 0.8;
}

.wallet-balance-card .amount {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-display);
  line-height: 1;
}

.btn-white {
  background: white;
  color: black;
  border: none;
  padding: 0.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

/* Profile Styles */
.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

.profile-avatar-large {
  width: 150px;
  height: 150px;
  background: #333;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-group input {
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: var(--radius);
  color: var(--text);
}

.settings-list {
  list-style: none;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.toggle {
  width: 50px;
  height: 26px;
  background: #333;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
}

.toggle.active {
  background: var(--primary);
}

.toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: 0.3s;
}

.toggle.active::after {
  left: 27px;
}

/* Mobile Specifics */
.mobile-frame {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 375px;
    height: 812px;
    background: var(--bg);
    border-radius: 40px;
    border: 8px solid #333;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 0 100px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .app-container { flex-direction: column; }
    .map-overlay { grid-template-columns: 1fr; }
    .status-floating { top: auto; bottom: 2rem; right: 1rem; left: 1rem; justify-content: center; }
}

/* Splash Screen */
.splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.splash .logo { font-size: 3rem; margin-bottom: 0; }

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 3rem 2rem;
}
