@import '../responsive.css';
/* Base Styles */
:root {
  --primary: #E05E1A;    /* Orange color */
  --secondary: #1A2942;  /* Dark blue color */
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  color: var(--gray-800);
  background-color: var(--gray-100);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Promotions */
.promotions .promo-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.promotions .promo-grid {
  display: flex;
  gap: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 100%;
  flex-wrap: nowrap;
}

.promotions .promo-grid .promo-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

.promotions .promo-card p {
  display: block;
  line-height: 1.4;
  font-size: 0.9rem;
  margin: 0;
}

.promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  min-height: 140px;
  background: var(--promo-bg-color, #FF6B35);
  color: var(--promo-text-color, #FFFFFF);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.promo-card .promo-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
}

.promo-card .promo-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.promo-card .promo-icon i { 
  color: var(--promo-text-color, #fff);
  font-size: 1.5rem;
}

.promo-card .promo-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.promo-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: var(--promo-text-color, #fff);
}

.promo-card p {
  color: var(--promo-text-color, rgba(255,255,255,0.9));
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
  opacity: 0.95;
}

.promo-cta {
  padding: 0.625rem 1.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.promo-cta:hover { 
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.promo-bg-shape {
  position: absolute;
  inset: -30%;
  transform: rotate(12deg);
  background: radial-gradient(100% 100% at 0% 0%, rgba(255,255,255,0.25), transparent 60%);
  opacity: 0.35;
  z-index: 1;
}

.no-promotions {
  grid-column: 1 / -1;
  background: var(--white);
  border: 2px dashed #E0E6ED;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.no-promotions:hover {
  border-color: #C2CFE0;
}

@media (max-width: 768px) {
  .promotions .promo-grid .promo-card {
    max-width: 100%;
    min-width: 100%;
  }

  .promo-card {
    padding: 1.25rem 1.5rem;
    min-height: 120px;
  }

  .promo-card .promo-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .promo-card .promo-icon {
    width: 48px;
    height: 48px;
  }

  .promo-card .promo-icon i {
    font-size: 1.25rem;
  }

  .promo-card h3 {
    font-size: 1.125rem;
  }

  .promo-card p {
    font-size: 0.85rem;
  }

  .promo-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
  }
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  z-index: 50;
  transition: box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.navbar.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar nav {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  max-width: 1500px;
  margin: 0 auto;
  flex-wrap: nowrap !important;
  gap: 1rem;
}

.navbar nav > * { flex: 0 0 auto !important; }

@media (min-width: 640px) {
  .navbar nav {
    padding: 0.875rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .navbar nav {
    padding: 1.25rem 2rem;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .navbar nav {
    padding: 1.25rem 3rem;
    gap: 2rem;
  }
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  z-index: 50;
  transition: box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.navbar.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar nav {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  max-width: 1500px;
  margin: 0 auto;
  flex-wrap: nowrap !important;
  gap: 1rem;
}

/* Force navbar children to stay on a single row and not expand to 100% width */
.navbar nav > * {
  flex: 0 0 auto !important;
}

@media (min-width: 640px) {
  .navbar nav {
    padding: 0.875rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .navbar nav {
    padding: 1.25rem 2rem;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .navbar nav {
    padding: 1.25rem 3rem;
    gap: 2rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 1rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .logo {
    font-size: 1.2rem;
    gap: 0;
  }
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.875rem;
    gap: 0;
  }
  
  .logo span {
    margin-left: -0.4rem;
  }
}

.car-icon {
  color: var(--secondary);
  font-size: 1.5rem;
}

.logo-icon {
  height: 1.5rem;
  width: auto;
  object-fit: contain;
}

.logo-full {
  height: 1.2rem;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 480px) {
  .car-icon {
    font-size: 2rem;
  }
  
  .logo-icon {
    height: 2rem;
  }
  
  .logo-full {
    height: 1.4rem;
  }
}

@media (min-width: 768px) {
  .car-icon {
    font-size: 3rem;
  }
  
  .logo-icon {
    height: 3rem;
  }
  
  .logo-full {
    height: 2.2rem;
  }
}

.logo span {
  color: var(--primary);
  margin-left: -0.3rem;
}

.desktop-menu {
  display: flex;
  gap: 2rem;
  margin-left: -210px;
}

.desktop-menu a {
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.2s;
}

.desktop-menu a:hover {
  color: var(--primary);
}

.desktop-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notification-bell-btn {
  position: relative;
  background: none;
  border: none;
  padding: 0.75rem;
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-bell-btn:hover {
  background-color: rgba(224, 94, 26, 0.1);
  color: var(--primary-dark);
}

.notification-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background-color: #ff4757;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.notification-badge:empty {
  display: none;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Notification Dropdown Styles */
.notification-dropdown {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  width: 380px;
  max-height: 500px;
  overflow: hidden;
  border: 1px solid #e1e5e9;
  position: fixed !important;
  z-index: 9999 !important;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e1e5e9;
  background: #f8f9fa;
}

.notification-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

.mark-all-read-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.mark-all-read-btn:hover {
  background-color: rgba(224, 94, 26, 0.1);
}

.notifications-list {
  max-height: 350px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s;
  position: relative;
}

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

.notification-item:hover {
  background-color: #f8f9fa;
}

.notification-item.unread {
  background-color: #fff3e0;
  border-left: 3px solid var(--primary);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 1.25rem;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
}

.notification-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.notification-icon i {
  color: white;
  font-size: 1rem;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.notification-message {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.notification-time {
  color: #999;
  font-size: 0.75rem;
}

.notification-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s;
  margin-left: 0.5rem;
}

.notification-close:hover {
  color: #666;
  background-color: #f1f3f4;
}

.notification-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #e1e5e9;
  background: #f8f9fa;
  text-align: center;
}

.view-all-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.view-all-link:hover {
  text-decoration: underline;
}

.no-notifications {
  text-align: center;
  padding: 2rem 1rem;
  color: #999;
}

.no-notifications i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.user-menu {
  position: relative;
}

.user-menu-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 50px;
  background-color: var(--primary);
  transition: background-color 0.2s;
}

.user-menu-button span {
  font-size: 1rem;
  color: white;
}

.user-menu-button i {
  color: white;
}

.user-menu-button:hover {
  background-color: rgba(224, 94, 26, 0.9);
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 250px;
  background-color: var(--white);
  border-radius: 0.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  display: none;
  z-index: 100;
}

.user-dropdown.active {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: var(--gray-100);
}

.dropdown-item i {
  color: var(--gray-600);
  width: 1rem;
  text-align: center;
}

.user-dropdown hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0.5rem 0;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(224, 94, 26, 0.3);
}
.btn-primary:hover {
  background-color: rgba(224, 94, 26, 0.9);
}

.btn-outline {
  background-color: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-outline:hover {
  background-color: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #4c31a0;
}

.btn-text {
  color: var(--secondary);
  background: transparent;
  padding: 0.25rem 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-text:hover {
  text-decoration: underline;
}

.full-width {
  width: 100%;
}

/* Nav Actions Container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex: 0 0 auto;
}

/* Desktop/Mobile Only Classes */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: flex !important;
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0.5rem;
  }

  .user-menu-button .user-name {
    display: block !important;
  }

  .notification-dropdown {
    width: 90vw;
    right: 5vw !important;
    left: 5vw !important;
  }
}

.mobile-notification-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(224, 94, 26, 0.1);
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-notification-btn:hover {
  background: rgba(224, 94, 26, 0.2);
}

.mobile-notification-btn i {
  margin-right: 0.5rem;
}

.mobile-notification-btn .notification-badge {
  position: static;
  margin-left: auto;
  width: auto;
  height: auto;
  min-width: 1.2rem;
  padding: 0.1rem 0.4rem;
}

/* Animation */
.animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}

.animate-item.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Dashboard Layout */
.dashboard {
  min-height: 100vh;
  padding-top: 5rem; /* Height of navbar on mobile */
}

@media (min-width: 768px) {
  .dashboard {
    padding-top: 6.5rem;
  }
}

@media (min-width: 1024px) {
  .dashboard {
    padding-top: 8rem;
  }
}

.dashboard .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

@media (min-width: 640px) {
  .dashboard .container {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .dashboard .container {
    padding: 2rem 1rem;
  }
}

/* Dashboard Main Content */
.dashboard-content {
  width: 100%;
}

.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .dashboard-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }
}

.welcome-message h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .welcome-message h1 {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .welcome-message h1 {
    font-size: 2.125rem;
  }
}

.welcome-message p {
  color: var(--gray-600);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .welcome-message p {
    font-size: 1rem;
  }
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .quick-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .quick-actions {
    flex-direction: row;
    gap: 1rem;
    width: auto;
  }
}

.quick-actions .btn-primary,
.quick-actions .btn-outline {
  white-space: nowrap;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .quick-actions .btn-primary,
  .quick-actions .btn-outline {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .quick-actions .btn-primary,
  .quick-actions .btn-outline {
    flex: 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* Stats Cards */
.stats-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .stats-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.stat-card {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .stat-card {
    padding: 1.5rem;
  }
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.stat-card:nth-child(1) .stat-icon {
  background-color: var(--primary);
}

.stat-card:nth-child(2) .stat-icon {
  background-color: var(--secondary);
}

.stat-card:nth-child(3) .stat-icon {
  background-color: var(--info);
}

.stat-card:nth-child(4) .stat-icon {
  background-color: var(--warning);
}

.stat-details {
  flex: 1;
  margin-left: 1rem;
}

.stat-details h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-details p {
  font-size: 0.875rem;
  color: var(--gray-600);
}



/* Dashboard Sections */
.dashboard-section {
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .dashboard-section {
    padding: 1.25rem;
  }
}

@media (min-width: 768px) {
  .dashboard-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 1.5rem;
  }
}

.section-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .section-header h2 {
    font-size: 1.25rem;
  }
}

.view-all {
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.view-all:hover {
  text-decoration: underline;
}

/* Upcoming Rides Section */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--gray-600);
  text-align: center;
}

.loading-state .loading-spinner {
  margin-bottom: 1rem;
}

.loading-state .loading-spinner i {
  font-size: 2rem;
  color: var(--primary);
}

.loading-state p {
  margin: 0;
  font-size: 1rem;
}
.rides-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ride-card {
  background-color: var(--gray-100);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
  .ride-card {
    padding: 1.25rem;
  }
}

@media (min-width: 768px) {
  .ride-card {
    padding: 1.5rem;
  }
}

.ride-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ride-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.confirmed {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success);
}

.status-badge.cancelled {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger);
}

.status-badge.flagged {
  background-color: rgba(220, 53, 69, 0.12);
  color: var(--danger);
  border-radius: 12px;
  padding: 0.25em 0.75em;
  font-weight: 600;
  font-size: 0.95em;
  display: inline-block;
}

/* Empty state styling to match driver dashboard */
.no-rides-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--gray-600);
  text-align: center;
}

.no-rides-message i {
  font-size: 3rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.no-rides-message h3 {
  margin: 0 0 0.5rem 0;
  color: var(--gray-700);
}

.no-rides-message p {
  margin: 0 0 1.5rem 0;
  color: var(--gray-600);
}

.no-rides-message .btn-primary {
  margin-top: 0.5rem;
}

.status-badge.completed {
  background-color: rgba(26, 41, 66, 0.1);
  color: var(--secondary);
}

.status-badge.pending {
  background-color: #e0e0e0;
  color: #555;
  border-radius: 12px;
  padding: 0.25em 0.75em;
  font-weight: 600;
  font-size: 0.95em;
  display: inline-block;
}

.status-badge.offered {
  background-color: rgba(255, 193, 7, 0.15);
  color: #856404;
  border-radius: 12px;
  padding: 0.25em 0.75em;
  font-weight: 600;
  font-size: 0.95em;
  display: inline-block;
}

.status-badge.offer_sent {
  background-color: rgba(147, 51, 234, 0.15);
  color: #6b21a8;
  border-radius: 12px;
  padding: 0.25em 0.75em;
  font-weight: 600;
  font-size: 0.95em;
  display: inline-block;
}

.status-badge.flagged {
  background-color: rgba(220, 53, 69, 0.12);
  color: var(--danger);
  border-radius: 12px;
  padding: 0.25em 0.75em;
  font-weight: 600;
  font-size: 0.95em;
  display: inline-block;
}

.status-badge.ride_requested {
  background-color: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
  border-radius: 12px;
  padding: 0.25em 0.75em;
  font-weight: 600;
  font-size: 0.95em;
  display: inline-block;
}

.ride-date {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.ride-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ride-route {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.route-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.route-point i {
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

.route-point.pickup i {
  color: var(--primary);
}

.route-point.dropoff i {
  color: var(--secondary);
  font-size: 1rem;
  margin-left: -0.125rem;
}

.route-line {
  position: absolute;
  left: 0.375rem;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 1px;
  background-color: var(--gray-300);
}

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

.point-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
}

.point-address {
  font-size: 0.875rem;
  color: var(--gray-800);
}

.ride-info {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--gray-200);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.info-item i {
  color: var(--gray-600);
}

/* Responsive adjustments for ride info grid */
@media (max-width: 768px) {
  .ride-info {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .info-item {
    font-size: 0.8rem;
    gap: 0.375rem;
  }
}

@media (max-width: 480px) {
  .ride-info {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

.ride-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* Ride History Table */
.ride-history-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .ride-history-table {
    margin: 0;
    padding: 0;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

@media (min-width: 1024px) {
  table {
    min-width: 100%;
  }
}

thead {
  background-color: var(--gray-100);
}

th {
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-300);
  white-space: nowrap;
}

@media (min-width: 640px) {
  th {
    padding: 0.875rem 0.75rem;
    font-size: 0.8125rem;
  }
}

@media (min-width: 768px) {
  th {
    padding: 1rem;
    font-size: 0.875rem;
  }
}

td {
  padding: 0.75rem 0.5rem;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

@media (min-width: 640px) {
  td {
    padding: 0.875rem 0.75rem;
    font-size: 0.8125rem;
  }
}

@media (min-width: 768px) {
  td {
    padding: 1rem;
    font-size: 0.875rem;
  }
}

tbody tr:hover {
  background-color: var(--gray-100);
}

.action-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: all 0.2s;
}

.action-btn:hover {
  background-color: var(--gray-200);
  color: var(--gray-800);
}

/* Payment Methods Section */
.payment-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: var(--gray-100);
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.payment-card.default {
  border-color: var(--secondary);
}

.card-type {
  width: 3rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.card-type.visa {
  color: #1a1f71;
}

.card-type.mastercard {
  color: #eb001b;
}

.card-details {
  flex: 1;
  margin-left: 1rem;
}

.card-details h3 {
  font-size: 0.875rem;
  font-weight: 600;
}

.card-details p {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dropdown-menu {
  position: absolute;
  background-color: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 0.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  z-index: 100;
}

.dropdown-menu .dropdown-item {
  padding: 0.5rem 1rem;
  color: var(--gray-700);
  font-size: 0.875rem;
  text-align: left;
  width: 100%;
  background: transparent;
  border: none;
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--gray-200);
}

.default-label {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 0.25rem;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -0.25rem;
}

.footer-logo-icon i {
  color: var(--secondary);
  font-size: 2rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  max-width: 20rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--white);
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--white);
}

.contactinfo li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .copyright {
    margin-bottom: 0;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

/* Set current year for footer copyright */
#current-year:after {
  content: attr(data-year);
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 200;
  padding: 1rem;
}

.modal {
  background: var(--white);
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  position: relative;
  border-top: 5px solid var(--primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.modal-close {
  font-size: 1.5rem;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--gray-600);
  background: var(--gray-100);
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.modal-footer button {
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  min-width: 120px;
}

.modal-footer .btn-outline {
  background: var(--white);
  color: var(--gray-600);
  border: 2px solid var(--gray-300) !important;
}

.modal-footer .btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400) !important;
  color: var(--gray-700);
}

.modal-footer .btn-primary {
  background: var(--primary);
  color: var(--white);
}

.modal-footer .btn-primary:hover:not(:disabled) {
  background: #c04d15;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224, 94, 26, 0.3);
}

.modal-footer .btn-primary:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.input-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.input-row input {
  flex: 1;
}

/* Ride Request Modal Styles */
#requestRideModal .modal {
  background: var(--white);
  border-radius: 1rem;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
  border-top: 5px solid var(--primary);
}

#requestRideModal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}

#requestRideModal .modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

#requestRideModal .modal-close {
  font-size: 1.5rem;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#requestRideModal .modal-close:hover {
  color: var(--gray-600);
  background: var(--gray-100);
}

#requestRideModal .modal-body {
  padding: 2rem;
}

#requestRideModal .modal-footer {
  padding: 1.5rem 2rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

#requestRideModal .modal-footer button {
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  min-width: 120px;
}

#requestRideModal .btn-outline {
  background: var(--white);
  color: var(--gray-600);
  border: 2px solid var(--gray-300) !important;
}

#requestRideModal .btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400) !important;
  color: var(--gray-700);
}

#requestRideModal .btn-primary {
  background: var(--primary);
  color: var(--white);
}

#requestRideModal .btn-primary:hover:not(:disabled) {
  background: #c04d15;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224, 94, 26, 0.3);
}

#requestRideModal .btn-primary:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Form styling inside modal */
#requestRideModal .form-group {
  position: relative;  /* allow absolute positioning of suggestion list */
  margin-bottom: 1.5rem;
  z-index: 1000; /* Ensure form groups are above other elements */
}

/* Google Places Autocomplete dropdown styling - CRITICAL MODAL FIX */
.pac-container {
  z-index: 999999 !important; /* Maximum z-index for modal context */
  margin-top: 2px;
  padding: 8px 0;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: white;
  font-family: inherit;
  position: fixed !important;
  min-width: 300px;
}

/* Force autocomplete to appear in front of modal overlay */
body .pac-container {
  z-index: 999999 !important;
  position: fixed !important;
}

.pac-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: background-color 0.2s ease;
}

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

.pac-item:hover {
  background-color: var(--gray-100);
}

.pac-item-selected {
  background-color: var(--primary);
  color: white;
}

.pac-item-selected .pac-item-query,
.pac-item-selected .pac-matched {
  color: white;
}

/* Additional styling for better appearance */
.pac-icon {
  margin-right: 8px;
  width: 20px;
  height: 20px;
}

.pac-item-query {
  font-size: 14px;
  padding-right: 4px;
  color: var(--gray-900);
}

.pac-matched {
  font-weight: 600;
  color: var(--primary);
}

/* Ensure autocomplete works in modal - ULTIMATE FIX */
#requestRideModal .pac-container,
.modal-overlay .pac-container {
  z-index: 999999 !important;
  position: fixed !important;
  margin-top: 2px;
  padding: 8px 0;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: white;
  font-family: inherit;
  min-width: 300px;
}

/* Override Google's inline styles completely */
#requestRideModal .pac-container[style] {
  z-index: 999999 !important;
  position: fixed !important;
}

/* Additional styling for modal autocomplete */
#requestRideModal .form-group {
  position: relative;
  z-index: 1;
}

/* Ensure input fields work properly with autocomplete */
#requestRideModal .form-input {
  position: relative;
  z-index: 2;
}

#requestRideModal .form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

#requestRideModal .form-group label i {
  color: var(--primary);
  width: 16px;
  text-align: center;
  font-size: 0.875rem;
}

#requestRideModal .form-input,
#requestRideModal .form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: var(--white);
  font-family: inherit;
  color: var(--gray-700);
}

#requestRideModal .form-input:focus,
#requestRideModal .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 94, 26, 0.1);
}

#requestRideModal .form-input:hover,
#requestRideModal .form-textarea:hover {
  border-color: var(--gray-300);
}

/* Simplified input styles after removing autocomplete */
#requestRideModal .form-group .form-input {
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--gray-700);
  width: 100%;
  font-size: 1rem;
}

#requestRideModal .form-group .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 94, 26, 0.1);
  outline: none;
}

/* Animation */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal {
    width: 95%;
    margin: 1rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column-reverse;
  }
  
  .modal-footer button {
    width: 100%;
  }

  #requestRideModal .modal {
    width: 95%;
    margin: 1rem;
  }
  
  #requestRideModal .modal-body {
    padding: 1.5rem;
  }
  
  #requestRideModal .modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column-reverse;
  }
  
  #requestRideModal .modal-footer button {
    width: 100%;
  }
}

/* Edit Ride Request Modal Styles */
#editRideRequestModal .modal {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#editRideRequestModal .modal-header {
  background: linear-gradient(135deg, var(--primary), #ff7043);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 1rem 1rem 0 0;
  position: relative;
}

#editRideRequestModal .modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

#editRideRequestModal .modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

#editRideRequestModal .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

#editRideRequestModal .modal-body {
  padding: 2rem;
  background: white;
}

#editRideRequestModal .ride-subtitle {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-align: center;
}

#editRideRequestModal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

#editRideRequestModal .form-group {
  margin-bottom: 1.5rem;
}

#editRideRequestModal .form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

#editRideRequestModal .form-group label i {
  color: var(--primary);
  width: 16px;
  text-align: center;
}

#editRideRequestModal .form-input,
#editRideRequestModal .form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
  font-family: inherit;
}

#editRideRequestModal .form-input:focus,
#editRideRequestModal .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 94, 26, 0.1);
}

#editRideRequestModal .form-input::placeholder,
#editRideRequestModal .form-textarea::placeholder {
  color: var(--gray-400);
}

#editRideRequestModal .form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Edit ride info row styles */
.edit-ride-info-row {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

/* Read-only ride details styling */
#editRideRequestModal .ride-details-readonly {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

#editRideRequestModal .ride-details-readonly h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#editRideRequestModal .ride-details-readonly h4:before {
  content: "📍";
  font-size: 1.2rem;
}

#editRideRequestModal .readonly-field {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

#editRideRequestModal .readonly-field:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

#editRideRequestModal .readonly-field label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

#editRideRequestModal .readonly-field label i {
  color: var(--primary);
  width: 16px;
  text-align: center;
}

#editRideRequestModal .readonly-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  padding-left: 1.5rem;
}

#editRideRequestModal .ride-info-display {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 1rem;
  flex: 1;
}

#editRideRequestModal .ride-info-display .info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#editRideRequestModal .ride-info-display i {
  color: var(--primary);
}

#editRideRequestModal .ride-info-display .info-text {
  font-weight: 500;
  color: var(--gray-700);
}

#editRideRequestModal .ride-info-display .info-value {
  font-weight: 600;
  color: var(--gray-800);
}

#editRideRequestModal .modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-radius: 0 0 12px 12px;
}

#editRideRequestModal .modal-actions-right {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

#editRideRequestModal .modal-footer button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

#editRideRequestModal .btn-outline {
  background: white;
  color: var(--gray-600);
  border: 2px solid var(--gray-300) !important;
}

#editRideRequestModal .btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400) !important;
  color: var(--gray-700);
}

#editRideRequestModal .btn-primary {
  background: var(--primary);
  color: white;
}

#editRideRequestModal .btn-primary:hover:not(:disabled) {
  background: #c04d15;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224, 94, 26, 0.3);
}

#editRideRequestModal .btn-primary:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#editRideRequestModal .btn-danger {
  background: var(--danger);
  color: white;
}

#editRideRequestModal .btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Enhanced contribution hint styling */
#editRideRequestModal .edit-contribution-hint {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

/* Loading spinner */
#editRideRequestModal .loading-spinner {
  margin-left: auto;
}

#editRideRequestModal .loading-spinner i {
  color: var(--primary);
}

/* Responsive design */
@media (max-width: 768px) {
  #editRideRequestModal .modal {
    width: 95%;
    max-width: none;
    margin: 1rem;
    max-height: 95vh;
  }
  
  #editRideRequestModal .modal-header {
    padding: 1rem 1.5rem;
  }
  
  #editRideRequestModal .modal-header h3 {
    font-size: 1.25rem;
  }
  
  #editRideRequestModal .modal-body {
    padding: 1.5rem;
  }
  
  #editRideRequestModal .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  #editRideRequestModal .modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  #editRideRequestModal .modal-actions-right {
    width: 100%;
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  
  #editRideRequestModal .modal-footer button {
    width: 100%;
    min-width: auto;
  }
  
  .edit-ride-info-row {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Danger button styles */
.btn-danger {
  background-color: var(--danger);
  color: white;
  border: 2px solid var(--danger);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger:disabled {
  background-color: var(--gray-400);
  border-color: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Edit modal footer button arrangement */
#editRideRequestModal .modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

/* Edit modal responsive design */
@media (max-width: 768px) {
  #editRideRequestModal .modal {
    width: 95%;
    max-width: none;
    margin: 1rem;
  }
  
  #editRideRequestModal .modal-footer {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  #editRideRequestModal .modal-footer button {
    width: 100%;
    margin: 0;
  }
  
  .edit-ride-info-row {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Toast styles removed */

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}





