/* ========================================
   MATERIAL DESIGN FLAT STYLE - RIDE LIST
   Modern, Clean, Consistent Design
   ======================================== */

/* ===== TAB NAVIGATION ===== */
.ride-tabs {
  border: none !important;
  margin-bottom: 16px;
  padding: 8px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ride-tabs .nav-item {
  margin: 0 4px;
}

.ride-tabs .nav-link {
  border: none !important;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280 !important;
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
}

.ride-tabs .nav-link:hover {
  color: #667eea !important;
  background: rgba(102, 126, 234, 0.08);
}

.ride-tabs .nav-link.active {
  background: #E3004F !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(227, 0, 79, 0.3);
}

.ride-tabs .nav-link.active:hover {
  background: #C90046 !important;
  color: white !important;
}

.ride-tabs .nav-link:focus,
.ride-tabs .nav-link:focus-visible {
  color: inherit !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ===== RIDE CARD BASE ===== */
.ride-card {
  background: #ffffff;
  border-radius: 12px;
  border: none;
  margin: 12px 0;
  overflow: hidden;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

.ride-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ===== HEADER SECTION ===== */
.ride-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background: #f8f9fa;
  border-bottom: none;
}

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

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

/* ===== BADGES & CHIPS ===== */
.ride-card__booking-id {
  background: #E3004F;
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(227, 0, 79, 0.3);
}

.ride-card__trip-time {
  color: #ff6b6b;
  font-size: 12px;
  padding: 6px 12px;
  background: rgba(255, 107, 107, 0.12);
  border-radius: 16px;
  font-weight: 500;
}

.ride-card__vehicle-info {
  color: #495057;
  font-size: 12px;
  padding: 6px 12px;
  background: rgba(52, 211, 153, 0.12);
  border-radius: 16px;
  font-weight: 500;
}

.ride-card__vehicle-info i {
  margin-right: 6px;
  color: #34d399;
}

/* ===== ROUTE INFORMATION ===== */
.ride-card__route-info {
  margin-top: 8px;
}

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

.ride-card__address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #495057;
  line-height: 1.4;
  padding: 4px 0;
}

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

.ride-card__address.pickup i {
  color: #34d399;
}

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

/* ===== PRICING SECTION ===== */
.ride-card__pricing {
  text-align: right;
  flex-shrink: 0;
}

.ride-card__price {
  background: #28a745;
  color: white;
  padding: 8px 14px;
  border-radius: 12px;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

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

/* ===== CUSTOMER INFORMATION ===== */
.ride-card__customer-info {
  padding: 16px;
  background: #ffffff;
  border-bottom: none;
}

.ride-card__customer-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  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: 10px;
}

/* ===== CALL CUSTOMER BUTTON ===== */
.btn-call-customer {
  background: #C57D84;
  border: none;
  border-radius: 20px;
  padding: 10px 18px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(197, 125, 132, 0.3);
  transition: all 0.2s ease;
}

.btn-call-customer:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(248, 113, 113, 0.4);
}

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

/* ===== ACCORDION STYLING (MATERIAL DESIGN) ===== */
.ride-card__details-accordion {
  padding: 0 16px 16px 16px;
}

.ride-card__details-accordion .accordion {
  border: none;
}

.ride-card__details-accordion .accordion-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.ride-card__details-accordion .accordion-button {
  background: #f8f9fa;
  border: none;
  color: #495057;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.ride-card__details-accordion .accordion-button:not(.collapsed) {
  background: #E3004F;
  color: white;
  box-shadow: 0 2px 8px rgba(227, 0, 79, 0.3);
}

.ride-card__details-accordion .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
  border-color: transparent;
  outline: none;
}

.ride-card__details-accordion .accordion-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
  border-color: transparent;
  outline: none;
}

.ride-card__details-accordion .accordion-button::after {
  filter: brightness(0) invert(0.4);
}

.ride-card__details-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.ride-card__details-accordion .accordion-button i {
  margin-right: 8px;
  font-size: 14px;
}

.ride-card__details-accordion .accordion-body {
  padding: 16px;
  background: #fafafa;
}

/* ===== RIDE DETAILS TABLE ===== */
.ride-details-table .table {
  font-size: 12px;
  margin: 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.ride-details-table .table th {
  background: #f8f9fa;
  border-color: #e5e7eb;
  font-weight: 600;
  color: #495057;
  padding: 10px 12px;
}

.ride-details-table .table td {
  border-color: #e5e7eb;
  padding: 10px 12px;
  vertical-align: middle;
  color: #495057;
}

.ride-details-table .table td:first-child {
  font-weight: 500;
  color: #6b7280;
}

.ride-details-table .table td:last-child {
  font-weight: 600;
  color: #111827;
}

.ride-details-table .table tbody tr:hover {
  background-color: #f9fafb;
}

/* ===== ACTION BUTTONS ===== */
.ride-card__actions-buttons {
  padding: 16px;
  background: #f8f9fa;
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.btn-start-ride {
  background: #28a745;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  width: 90%;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
  transition: all 0.2s ease;
}

.btn-start-ride:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(52, 211, 153, 0.4);
}

.btn-start-ride i {
  margin-right: 6px;
}

.btn-close-ride {
  background: #E3004F;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  width: 90%;
  box-shadow: 0 2px 6px rgba(227, 0, 79, 0.3);
  transition: all 0.2s ease;
}

.btn-close-ride:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(248, 113, 113, 0.4);
}

.btn-close-ride i {
  margin-right: 6px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
  .ride-card {
    margin: 8px 4px;
    border-radius: 10px;
    font-size: 13px;
  }

  .ride-card__header {
    padding: 12px;
  }

  .ride-card__customer-info {
    padding: 12px;
  }

  .ride-card__actions-buttons {
    padding: 12px;
  }

  .ride-card__booking-details {
    gap: 6px;
  }

  .ride-card__address {
    font-size: 12px;
  }

  .btn-start-ride,
  .btn-close-ride {
    padding: 10px 16px;
    font-size: 13px;
  }

  .ride-card__details-accordion {
    padding: 0 12px 12px 12px;
  }
}

/* ===== TOUCH-FRIENDLY BUTTONS ===== */
.btn {
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}

/* ===== SMOOTH ANIMATIONS ===== */
* {
  -webkit-tap-highlight-color: transparent;
}

.ride-card,
.btn,
.accordion-button {
  transition: all 0.2s ease;
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.accordion-button:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* ===== SUMMARY BADGE ===== */
.ride-list__summary {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  margin-top: 4px;
}

.ride-list__summary-badge {
  background: rgba(102, 126, 234, 0.08);
  color: #667eea;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.05);
  transition: all 0.3s ease;
}

.ride-list__summary-badge:hover {
  background: rgba(102, 126, 234, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(102, 126, 234, 0.1);
}

.ride-list__summary-badge i {
  font-size: 14px;
  color: #764ba2;
}

/* ===== GENERIC MATERIAL UTILITIES ===== */
.material-card {
  background: #ffffff;
  border-radius: 12px;
  border: none;
  margin: 12px 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.material-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.material-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
}

.material-card__body {
  padding: 16px;
}

.material-card__footer {
  padding: 12px 16px;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.material-btn {
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  min-height: 40px;
  border: none;
}

.material-btn--primary {
  background: #E3004F;
  color: white !important;
  box-shadow: 0 4px 10px rgba(227, 0, 79, 0.3);
}

.material-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(102, 126, 234, 0.4);
}

.material-btn--danger {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.material-btn--danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626 !important;
}

.material-btn--outline {
  background: transparent;
  color: #4b5563 !important;
  border: 1px solid #e5e7eb;
}

.material-btn--outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.material-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.material-badge--success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.material-badge--warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.material-badge--danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.driver-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
  display: block;
}

.card-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
  display: block;
}

/* ===== RIDE ACCEPT GUIDELINES MODAL ===== */
.guidelines-section {
  padding: 16px;
  background: #f8f9fa;
}

.guidelines-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
}

.guideline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.guideline-icon {
  font-size: 18px;
  color: #4CAF50;
  margin-top: 2px;
  flex-shrink: 0;
}

.guideline-item strong {
  font-size: 14px;
  color: #1f2937;
  display: block;
  margin-bottom: 2px;
}

.guideline-item p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.guidelines-divider {
  margin: 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* ===== CANCELLATION POLICY SECTION ===== */
.cancellation-policy-section {
  padding: 16px;
  background: #f8f9fa;
}

.cancellation-policy-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
}

.cancellation-tier {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #e5e7eb;
}

.cancellation-tier:last-child {
  margin-bottom: 0;
}

.cancellation-tier-free {
  border-left-color: #10b981;
}

.cancellation-tier-medium {
  border-left-color: #f59e0b;
}

.cancellation-tier-severe {
  border-left-color: #ef4444;
}

.cancellation-tier-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.cancellation-tier-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.cancellation-tier-free .cancellation-tier-icon {
  color: #10b981;
}

.cancellation-tier-medium .cancellation-tier-icon {
  color: #f59e0b;
}

.cancellation-tier-severe .cancellation-tier-icon {
  color: #ef4444;
}

.cancellation-tier-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.cancellation-tier-free .cancellation-tier-badge {
  background: #d1fae5;
  color: #065f46;
}

.cancellation-tier-medium .cancellation-tier-badge {
  background: #fef3c7;
  color: #92400e;
}

.cancellation-tier-severe .cancellation-tier-badge {
  background: #fee2e2;
  color: #991b1b;
}

.cancellation-tier p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.ride-details-section {
  padding: 16px;
}

.ride-details-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
}

.ride-detail-route {
  margin-bottom: 16px;
}

.ride-detail-route-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.route-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

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

.route-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  margin: 0 0 2px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.route-address {
  font-size: 15px;
  color: #1f2937;
  font-weight: 600;
  margin: 0;
}

.route-sub {
  font-size: 12px;
  color: #6b7280;
  margin: 2px 0 0 0;
}

.ride-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.ride-detail-cell {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ride-detail-cell-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ride-detail-cell-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

.extra-charges-section {
  background: #f0f9ff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.extra-charges-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.extra-charge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #495057;
  margin-bottom: 6px;
}

.extra-charge-detail {
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0 0 24px;
}

.toll-tax-info {
  text-align: center;
  font-size: 13px;
  color: #6c757d;
  margin: 8px 0;
}

.notes-section {
  background: #fff5f5;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #fed7d7;
}

.notes-title {
  font-size: 13px;
  font-weight: 700;
  color: #dc3545;
  margin: 0 0 4px 0;
}

.notes-content {
  font-size: 14px;
  color: #dc3545;
  margin: 0;
}

@media (max-width: 480px) {
  .ride-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .ride-detail-cell {
    padding: 8px 10px;
  }
  .ride-detail-cell-label {
    font-size: 10px;
  }
  .ride-detail-cell-value {
    font-size: 12px;
  }
}

/* ===== VEHICLE & DRIVER SELECTION SECTIONS ===== */
.selection-section {
  padding: 16px;
}

.selection-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.selection-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #E3004F;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
  margin-left: 8px;
}

.selection-empty-msg {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 10px;
}

.selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.selection-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.selection-card:hover {
  border-color: #4CAF50;
  background: #f0fdf4;
}

.selection-card.selected {
  border-color: #4CAF50;
  background: #f0fdf4;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.selection-card.disabled {
  border-color: #fecaca;
  background: #fef2f2;
  cursor: not-allowed;
  opacity: 0.8;
}

.selection-card.disabled:hover {
  border-color: #fecaca;
  background: #fef2f2;
}

.selection-card.disabled .selection-card-radio {
  color: #ef4444;
}

.selection-card-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6b7280;
  margin-top: 2px;
}

.selection-card-reason {
  font-size: 11px;
  color: #dc2626;
  white-space: normal;
  line-height: 1.3;
  margin-top: 2px;
}

.selection-card-radio {
  flex-shrink: 0;
  font-size: 20px;
  color: #d1d5db;
}

.selection-card.selected .selection-card-radio {
  color: #4CAF50;
}

.selection-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.selection-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selection-card-sub {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.show-more-toggle {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #4CAF50;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.show-more-toggle:hover {
  background: #f0fdf4;
  border-color: #4CAF50;
}

@media (max-width: 480px) {
  .selection-grid {
    grid-template-columns: 1fr;
  }
}