/* Mobile-Optimized Ride Card Styling with Larger Fonts */

.ride-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin: 8px 0;
  overflow: hidden;
  font-size: 14px;
}

/* Header Section */

.ride-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.ride-card__main-info {
  flex: 1;
  margin-right: 8px;
}

.ride-card__booking-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.ride-card__booking-id {
  background: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.ride-card__trip-time {
  color: #fd7e14;
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(253, 126, 20, 0.1);
  border-radius: 12px;
}

.ride-card__vehicle-info {
  color: #6c757d;
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(108, 117, 125, 0.1);
  border-radius: 12px;
}

.ride-card__vehicle-info i {
  margin-right: 4px;
  color: #28a745;
}

/* Route Information */

.ride-card__route-info {
  margin-top: 6px;
}

.ride-card__addresses {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ride-card__address {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #495057;
  line-height: 1.3;
}

.ride-card__address i {
  font-size: 12px;
  width: 14px;
  flex-shrink: 0;
}

.ride-card__address.pickup i {
  color: #28a745;
}

.ride-card__address.drop i {
  color: #dc3545;
}

/* Pricing Section */

.ride-card__pricing {
  text-align: right;
  flex-shrink: 0;
}

.ride-card__price {
  background: #28a745;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
}

.ride-card__distance {
  color: #6c757d;
  font-size: 11px;
}

/* Customer Information */

.ride-card__customer-info {
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.ride-card__customer-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #495057;
}

.ride-card__customer-name {
  font-weight: 600;
  color: #212529;
  font-size: 14px;
}

.ride-card__customer-phone {
  color: #6c757d;
  font-size: 12px;
}

.ride-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Call Customer Button */

.btn-call-customer {
  background: #fd4066;
  border: none;
  border-radius: 16px;
  padding: 8px 14px;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.btn-call-customer i {
  margin-right: 4px;
}

/* Accordion Styling */

.ride-card__details-accordion .accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.ride-card__details-accordion .accordion-button {
  background: #f8f9fa;
  border: none;
  color: #495057;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
}

.ride-card__details-accordion .accordion-button:not(.collapsed) {
  background: #007bff;
  color: white;
}

.ride-card__details-accordion .accordion-body {
  padding: 10px;
  background: #fff;
}

/* Ride Details Table */

.ride-details-table .table {
  font-size: 11px;
  margin: 0;
}

.ride-details-table .table th {
  background: #f8f9fa;
  border-color: #e0e0e0;
  font-weight: 600;
  color: #495057;
  padding: 6px 8px;
}

.ride-details-table .table td {
  border-color: #e0e0e0;
  padding: 5px 8px;
  vertical-align: middle;
}

/* Action Buttons */

.ride-card__actions-buttons {
  padding: 12px;
  background: #f8f9fa;
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.btn-start-ride {
  background: #28a745;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  width: 90%;
}

.btn-close-ride {
  background: #dc3545;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  width: 90%;
}

/* Mobile-specific adjustments */

@media (max-width: 480px) {
  .ride-card {
    margin: 6px 4px;
    border-radius: 6px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .ride-card__header {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .ride-card__customer-info {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .ride-card__actions-buttons {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .ride-card__booking-details {
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .ride-card__address {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .btn-start-ride, .btn-close-ride {
    padding: 7px 12px;
    font-size: 11px;
  }
}

/* Ensure buttons are touch-friendly */

.btn {
  min-height: 36px;
  min-width: 48px;
}

/* Remove unnecessary shadows and effects */

.ride-card:hover {
  transform: none;
}

.btn:hover {
  transform: none;
}

