/* ============================================================
   RideLink NIGERIA — GLOBAL STYLESHEET
   Version: 1.0.0
   Brand Colors:
     Red:       #7B0D1E
     Oxblood:   #5C0A15
     Crimson:   #A01020
     Gold:      #C9A84C
     Gold Lt:   #E2C97E
     Charcoal:  #1F1F2E
     Dark:      #111118
     Smoke:     #F5F5F0
     Muted:     #6B7280
   ============================================================ */


/* ============================================================
   1. CSS RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Remove default focus outline and add custom */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid #7B0D1E;
  outline-offset: 2px;
  border-radius: 4px;
}


/* ============================================================
   2. CUSTOM SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F5F5F0;
}

::-webkit-scrollbar-thumb {
  background: #7B0D1E;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5C0A15;
}


/* ============================================================
   3. SELECTION HIGHLIGHT
   ============================================================ */

::selection {
  background-color: #7B0D1E;
  color: #FFFFFF;
}

::-moz-selection {
  background-color: #7B0D1E;
  color: #FFFFFF;
}


/* ============================================================
   4. NAVIGATION STYLES
   ============================================================ */

/* Default transparent state */
#navbar {
  background-color: transparent;
  transition: background-color 0.3s ease,
              box-shadow 0.3s ease,
              backdrop-filter 0.3s ease;
}

/* Scrolled state — applied via JavaScript */
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* When navbar is over hero (transparent bg), make text white */
#navbar:not(.scrolled) a,
#navbar:not(.scrolled) button {
  color: #FFFFFF;
}

/* Logo text color adjustment */
#navbar:not(.scrolled) .leading-tight span:first-child {
  color: #FFFFFF;
}

#navbar:not(.scrolled) .leading-tight span:last-child {
  color: #C9A84C;
}

/* CTA buttons in transparent state */
#navbar:not(.scrolled) a[href="login.html"] {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

#navbar:not(.scrolled) a[href="login.html"]:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

#navbar:not(.scrolled) a[href="register.html"] {
  background-color: #C9A84C;
  color: #111118;
}

#navbar:not(.scrolled) a[href="register.html"]:hover {
  background-color: #E2C97E;
}

/* Mobile menu button in transparent state */
#navbar:not(.scrolled) #mobile-menu-btn {
  color: #FFFFFF;
}

#navbar:not(.scrolled) #mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile menu always has white background */
#mobile-menu {
  background-color: #FFFFFF;
}

#mobile-menu a {
  color: #1F1F2E !important;
}

#mobile-menu a:hover {
  color: #7B0D1E !important;
  background-color: #F5F5F0;
}

#mobile-menu a[href="login.html"] {
  color: #7B0D1E !important;
  border-color: #7B0D1E !important;
}

#mobile-menu a[href="register.html"] {
  color: #FFFFFF !important;
  background-color: #7B0D1E !important;
}


/* ============================================================
   5. HERO SECTION STYLES
   ============================================================ */

#hero {
  position: relative;
}

/* Pulsing animation for live indicator */
@keyframes pulse-soft {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.animate-pulse {
  animation: pulse-soft 2s infinite ease-in-out;
}

/* Hero image frame hover */
.hero-image-frame {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 100px rgba(123, 13, 30, 0.25);
}

/* Floating cards animation */
.hero-image-frame .absolute {
  transition: transform 0.3s ease;
}

.hero-image-frame:hover .absolute {
  transform: translateY(-2px);
}


/* ============================================================
   6. STATS COUNTER ANIMATION
   ============================================================ */

.stats-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-4px);
}

.counter {
  display: inline-block;
}

/* Add + suffix for counters via JS */
.counter-suffix::after {
  content: '+';
}


/* ============================================================
   7. HOW IT WORKS CARDS
   ============================================================ */

.how-card {
  position: relative;
  background: #FFFFFF;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.how-card:hover {
  transform: translateY(-6px);
}


/* ============================================================
   8. SERVICE CARDS
   ============================================================ */

.service-card {
  transition: transform 0.3s ease,
              box-shadow 0.3s ease;
  border: 1px solid #F3F4F6;
}

.service-card:hover {
  border-color: transparent;
}

/* Active state for when a service is selected */
.service-card.active {
  border-color: #7B0D1E;
  box-shadow: 0 8px 40px rgba(123, 13, 30, 0.12);
}

.service-card.active .w-14 {
  background-color: #7B0D1E !important;
}

.service-card.active .w-14 svg {
  stroke: #FFFFFF !important;
}


/* ============================================================
   9. SAFETY CARDS
   ============================================================ */

.safety-card {
  transition: transform 0.3s ease,
              background-color 0.3s ease,
              border-color 0.3s ease;
}

.safety-card:hover {
  transform: translateY(-4px);
}


/* ============================================================
   10. TESTIMONIAL CARDS
   ============================================================ */

.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}


/* ============================================================
   11. FORM STYLES
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 16px; /* Prevents iOS zoom on focus */
}

/* Input focus glow */
input:focus,
textarea:focus,
select:focus {
  border-color: #7B0D1E;
  box-shadow: 0 0 0 3px rgba(123, 13, 30, 0.08);
}

/* Placeholder styling */
::placeholder {
  color: #9CA3AF;
  opacity: 1;
}

::-webkit-input-placeholder {
  color: #9CA3AF;
}

::-moz-placeholder {
  color: #9CA3AF;
  opacity: 1;
}

:-ms-input-placeholder {
  color: #9CA3AF;
}

/* Autofill background override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset;
  -webkit-text-fill-color: #1F1F2E;
  transition: background-color 5000s ease-in-out 0s;
}

/* Form validation states */
input.error,
textarea.error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

input.success,
textarea.success {
  border-color: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.08);
}

/* Error message text */
.field-error {
  color: #DC2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.field-error.visible {
  display: block;
}


/* ============================================================
   12. BUTTON STYLES
   ============================================================ */

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #7B0D1E;
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  box-shadow: 0 4px 24px rgba(123, 13, 30, 0.18);
}

.btn-primary:hover {
  background-color: #5C0A15;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(123, 13, 30, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #7B0D1E;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  border: 1.5px solid #7B0D1E;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.btn-secondary:hover {
  background-color: #7B0D1E;
  color: #FFFFFF;
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Gold Button */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #C9A84C;
  color: #111118;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.20);
}

.btn-gold:hover {
  background-color: #E2C97E;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.30);
}

/* Ghost Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #6B7280;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.btn-ghost:hover {
  background-color: #F5F5F0;
  color: #1F1F2E;
}

/* Danger Button */
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #DC2626;
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.btn-danger:hover {
  background-color: #B91C1C;
}

/* Small button variant */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  border-radius: 0.5rem;
}

/* Large button variant */
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: 1rem;
}

/* Full width button */
.btn-block {
  width: 100%;
}

/* Loading state */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}


/* ============================================================
   13. BADGE & TAG STYLES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.badge-red {
  background-color: #FEF2F2;
  color: #7B0D1E;
}

.badge-green {
  background-color: #F0FDF4;
  color: #16A34A;
}

.badge-yellow {
  background-color: #FFFBEB;
  color: #B45309;
}

.badge-blue {
  background-color: #EFF6FF;
  color: #2563EB;
}

.badge-gray {
  background-color: #F3F4F6;
  color: #6B7280;
}

.badge-gold {
  background-color: rgba(201, 168, 76, 0.1);
  color: #C9A84C;
}


/* ============================================================
   14. CARD STYLES (REUSABLE)
   ============================================================ */

.card {
  background-color: #FFFFFF;
  border: 1px solid #F3F4F6;
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.card-bordered {
  border: 1px solid #E5E7EB;
}

.card-elevated {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: none;
}


/* ============================================================
   15. AVATAR STYLES
   ============================================================ */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #F5F5F0;
  color: #7B0D1E;
}

.avatar-xs {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.5rem;
}

.avatar-sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.625rem;
}

.avatar-md {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.75rem;
}

.avatar-lg {
  width: 3rem;
  height: 3rem;
  font-size: 0.875rem;
}

.avatar-xl {
  width: 4rem;
  height: 4rem;
  font-size: 1.125rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Avatar with online indicator */
.avatar-online {
  position: relative;
}

.avatar-online::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25%;
  height: 25%;
  background-color: #16A34A;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}


/* ============================================================
   16. TOAST / NOTIFICATION STYLES
   ============================================================ */

.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 24rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  pointer-events: all;
  animation: toast-in 0.4s ease-out;
  background-color: #FFFFFF;
  color: #1F1F2E;
  border-left: 4px solid #7B0D1E;
}

.toast-success {
  border-left-color: #16A34A;
}

.toast-error {
  border-left-color: #DC2626;
}

.toast-warning {
  border-left-color: #F59E0B;
}

.toast-info {
  border-left-color: #2563EB;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.toast.removing {
  animation: toast-out 0.3s ease-in forwards;
}


/* ============================================================
   17. MODAL / DIALOG STYLES
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: #FFFFFF;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  transform: translateY(1rem) scale(0.98);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}


/* ============================================================
   18. LOADING / SPINNER STYLES
   ============================================================ */

.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2.5px solid #F3F4F6;
  border-top-color: #7B0D1E;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-sm {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

.spinner-lg {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
}

.spinner-white {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
}

.spinner-gold {
  border-color: rgba(201, 168, 76, 0.3);
  border-top-color: #C9A84C;
}

/* Full page loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity 0.4s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}


/* ============================================================
   19. STATUS INDICATOR STYLES
   ============================================================ */

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-online {
  background-color: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.status-offline {
  background-color: #9CA3AF;
}

.status-busy {
  background-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.status-error {
  background-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}


/* ============================================================
   20. UTILITY CLASSES
   ============================================================ */

/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in from left */
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade in from right */
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* No scroll on body when modal is open */
body.no-scroll {
  overflow: hidden;
}

/* Text truncation */
.truncate-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Divider */
.divider {
  height: 1px;
  background-color: #F3F4F6;
  width: 100%;
}


/* ============================================================
   21. PAGE TRANSITION
   ============================================================ */

.page-transition {
  opacity: 0;
  animation: page-fade-in 0.4s ease-out forwards;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================================
   22. RESPONSIVE ADJUSTMENTS
   ============================================================ */

/* Extra small devices */
@media (max-width: 374px) {
  .font-display {
    font-size: 1.75rem !important;
  }

  #hero h1 {
    font-size: 1.875rem;
  }

  #hero h1 span:last-child {
    font-size: 1.5rem;
  }
}

/* Small devices override for service cards */
@media (max-width: 640px) {
  .service-card {
    padding: 1rem;
  }

  .service-card .w-14 {
    width: 3rem;
    height: 3rem;
  }

  .service-card .w-14 svg {
    width: 20px;
    height: 20px;
  }
}

/* Toast positioning on mobile */
@media (max-width: 640px) {
  .toast-container {
    top: auto;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .toast {
    font-size: 0.8125rem;
  }

  .modal {
    margin: 0.5rem;
    padding: 1.5rem;
    border-radius: 1rem;
  }
}

/* Landscape phone adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
}

/* Print styles */
@media print {
  nav,
  footer,
  #mobile-menu,
  .toast-container {
    display: none !important;
  }

  body {
    color: #000000;
    background: #FFFFFF;
  }

  a {
    text-decoration: underline;
  }

  section {
    page-break-inside: avoid;
  }
}


/* ============================================================
   23. PWA INSTALL PROMPT
   ============================================================ */

.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  background-color: #1F1F2E;
  color: #FFFFFF;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.pwa-install-banner.visible {
  transform: translateY(0);
}


/* ============================================================
   24. MAP CONTAINER STYLES
   ============================================================ */

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #E5E7EB;
  position: relative;
}

.map-container.map-lg {
  height: 400px;
}

.map-container.map-full {
  height: calc(100vh - 8rem);
  border-radius: 0;
}

@media (min-width: 768px) {
  .map-container {
    height: 400px;
  }

  .map-container.map-lg {
    height: 500px;
  }
}


/* ============================================================
   25. WALLET / FINANCE STYLES
   ============================================================ */

.wallet-card {
  background: linear-gradient(135deg, #7B0D1E 0%, #5C0A15 60%, #111118 100%);
  color: #FFFFFF;
  border-radius: 1.5rem;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.wallet-card .wallet-balance {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}


/* ============================================================
   26. TABLE STYLES (ADMIN)
   ============================================================ */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
  background-color: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #F3F4F6;
  color: #1F1F2E;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background-color: #FAFAFA;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive table wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  background-color: #FFFFFF;
}


/* ============================================================
   27. SIDEBAR STYLES (ADMIN / DASHBOARDS)
   ============================================================ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background-color: #111118;
  color: #FFFFFF;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem;
  margin: 0.125rem 0.75rem;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.sidebar-link.active {
  background-color: #7B0D1E;
  color: #FFFFFF;
  font-weight: 600;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-link.active svg {
  opacity: 1;
}

/* Main content when sidebar is present */
.main-with-sidebar {
  margin-left: 260px;
  min-height: 100vh;
  background-color: #F5F5F0;
}

@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-with-sidebar {
    margin-left: 0;
  }
}


/* ============================================================
   28. DASHBOARD STAT CARDS
   ============================================================ */

.dash-stat-card {
  background-color: #FFFFFF;
  border: 1px solid #F3F4F6;
  border-radius: 1.25rem;
  padding: 1.25rem;
  transition: box-shadow 0.3s ease;
}

.dash-stat-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.dash-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1F1F2E;
  letter-spacing: -0.02em;
}

.dash-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-stat-change {
  font-size: 0.75rem;
  font-weight: 600;
}

.dash-stat-change.positive {
  color: #16A34A;
}

.dash-stat-change.negative {
  color: #DC2626;
}


/* ============================================================
   29. VERIFICATION BADGE
   ============================================================ */

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #16A34A;
}

.verified-badge svg {
  width: 14px;
  height: 14px;
  fill: #16A34A;
}

.unverified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #F59E0B;
}


/* ============================================================
   30. RIDE STATUS COLORS
   ============================================================ */

.ride-status {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}

.ride-status-pending {
  background-color: #FEF3C7;
  color: #B45309;
}

.ride-status-accepted {
  background-color: #DBEAFE;
  color: #2563EB;
}

.ride-status-active {
  background-color: #D1FAE5;
  color: #059669;
}

.ride-status-completed {
  background-color: #F0FDF4;
  color: #16A34A;
}

.ride-status-cancelled {
  background-color: #FEE2E2;
  color: #DC2626;
}


/* ============================================================
   END OF STYLESHEET
   ============================================================ */