:root {
  --mobile-nav-height: 70px;
}

/* Mobile Bottom Navigation */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--mobile-nav-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  z-index: 10000;
  display: none; /* Only mobile */
}

@media (max-width: 768px) {
  .mobile-nav { display: flex; }
  .navbar .nav-links { display: none; }
  body { padding-bottom: var(--mobile-nav-height); }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 700;
  gap: 5px;
  position: relative;
  transition: 0.3s;
}

.mobile-nav-item.active { color: var(--brand-blue); }
.mobile-nav-item i { font-size: 1.25rem; }

.badge-notif {
  position: absolute;
  top: -5px;
  right: 5px;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 5px;
  border: 2px solid #fff;
}

/* Onboarding Flow */
.onboarding-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-blue);
  color: #fff;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.onboarding-dots { display: flex; gap: 10px; margin-top: 40px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.dot.active { background: #fff; transform: scale(1.3); }

/* Tracking Screen */
.tracking-header { background: var(--brand-blue); padding: 40px 20px; color: #fff; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; }
.tracking-timeline { padding: 30px 20px; position: relative; }
.timeline-item { position: relative; padding-left: 45px; margin-bottom: 30px; }
.timeline-item::before { content: ""; position: absolute; left: 15px; width: 2px; height: 100%; background: #e2e8f0; top: 10px; }
.timeline-item:last-child::before { display: none; }
.timeline-circle { position: absolute; left: 0; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; z-index: 2; }
.timeline-item.done .timeline-circle { border-color: #10b981; color: #10b981; }
.timeline-item.active .timeline-circle { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; box-shadow: 0 0 15px rgba(0, 53, 102, 0.4); }

.driver-card { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: 20px; background: #f8fafc; border: 1px solid #f1f5f9; }
.driver-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }

/* Dark Mode */
body.dark-mode {
  background: #0A0E1A;
  color: #F1F5F9;
}
body.dark-mode .card, body.dark-mode section { background: #111827 !important; border-color: rgba(255,255,255,0.05) !important; color: #fff; }
body.dark-mode .navbar, body.dark-mode .mobile-nav { background: rgba(10, 14, 26, 0.9); border-color: rgba(255,255,255,0.05); }
body.dark-mode .text-muted, body.dark-mode p { color: #94a3b8; }

/* Micro-interactions */
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; }
body.dark-mode .skeleton { background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%); background-size: 200% 100%; }

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Splash Screen (PWA Only) */
.splash-pwa { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--brand-blue); z-index: 30000; display: flex; align-items: center; justify-content: center; animation: fadeSplash 2s forwards; }
@keyframes fadeSplash { 0% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
