/* DriveSewa - Custom styles */

/* Smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Prevent body scroll when drawer is open */
body.no-scroll {
  overflow: hidden;
}

/* Safe area for iOS bottom */
.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Card hover effect */
.card-hover {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-hover:active {
  transform: scale(0.98);
}

/* Star rating */
.star-rating { color: #fbbf24; }
.star-rating .empty { color: #e5e7eb; }

/* Verified badge pulse */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #d1fae5;
  color: #065f46;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}

/* Driver avatar placeholder */
.avatar-placeholder {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-transform: uppercase;
}

/* Tap highlight removal for buttons */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Bottom sheet animation */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.bottom-sheet {
  animation: slideUp 0.25s ease-out;
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f4f6;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
