@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-color: #4f46e5;
  --primary-dark: #312e81;
  --success-color: #059669;
  --danger-color: #dc2626;
  --warning-color: #f59e0b;
  --gray-light: #f8fafc;
  --gray-border: #e5e7eb;
  --cyan-primary: #06b6d4;
  --cyan-light: #22d3ee;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--slate-900);
  color: #ffffff;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="date"],
  input[type="datetime-local"],
  select,
  textarea {
    min-height: 48px;
    font-size: 1rem;
  }
}

select {
  appearance: none;
  background-image: none;
  padding-right: 2.75rem;
}

select option {
  background-color: #1e293b;
  color: #ffffff;
  padding: 0.5rem;
}

button,
.btn {
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

@media (min-width: 640px) {
  button,
  .btn {
    min-height: 48px;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
}

label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

label.flex {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

label.flex i {
  flex-shrink: 0;
}

.relative input {
  padding-left: 2.75rem;
}

.relative select {
  padding-left: 2.75rem;
}

.relative > i.fa-location-dot,
.relative > i.fa-location-crosshairs,
.relative > i.fa-clock,
.relative > i.fa-chevron-down,
.relative > i.absolute {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.relative > i.fa-location-dot,
.relative > i.fa-location-crosshairs,
.relative > i.fa-clock {
  left: 1rem;
}

.relative > i.fa-chevron-down {
  right: 1rem;
}

.relative input[type="datetime-local"],
.relative select {
  min-height: 48px;
  display: flex;
  align-items: center;
}

@media (min-width: 640px) {
  .relative input[type="datetime-local"],
  .relative select {
    min-height: 52px;
  }
}

#bookingPage {
  min-height: 100vh;
  padding-top: 0;
}

#bookingSearchStep .grid {
  gap: 1rem;
}

@media (min-width: 768px) {
  #bookingSearchStep .grid {
    gap: 1.5rem;
  }
}

#bookingSearchStep label,
#bookingCheckoutStep label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
}

@media (min-width: 640px) {
  #bookingSearchStep label,
  #bookingCheckoutStep label {
    font-size: 0.9375rem;
  }
}

#bookingSearchStep input,
#bookingSearchStep select,
#bookingCheckoutStep input,
#bookingCheckoutStep select {
  min-height: 48px;
  padding: 0.875rem 1rem;
  padding-left: 2.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  #bookingSearchStep input,
  #bookingSearchStep select,
  #bookingCheckoutStep input,
  #bookingCheckoutStep select {
    min-height: 52px;
    padding: 1rem 1rem;
    padding-left: 2.75rem;
    font-size: 1rem;
  }
}

#bookingSearchStep select,
#bookingCheckoutStep select {
  padding-right: 2.75rem !important;
}

.driver-age-btn {
  min-height: 48px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 1rem;
}

@media (min-width: 640px) {
  .driver-age-btn {
    min-height: 52px;
    font-size: 1rem;
  }
}

#vehicleCardsContainer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  #vehicleCardsContainer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  #vehicleCardsContainer {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.vehicle-card {
  min-height: auto;
  overflow: hidden;
}

.vehicle-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

@media (max-width: 1023px) {
  #bookingVehicleStep .lg\\:w-80 {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  #bookingVehicleStep .lg\\:sticky {
    position: static;
  }
}

.addon-card {
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.addon-card input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

#checkoutForm .grid {
  gap: 1rem;
}

@media (min-width: 768px) {
  #checkoutForm .grid {
    gap: 1.5rem;
  }
}

.lg\\:sticky {
  position: -webkit-sticky;
  position: sticky;
}

@media (min-width: 1024px) {
  .lg\\:sticky {
    top: 6rem;
  }
}

#bookingPage .sticky {
  top: 0;
  margin-top: 0;
}

#bookingPage > div.sticky:first-child {
  top: 0;
  z-index: 50;
}

header.sticky {
  z-index: 60 !important;
}

body:has(#termsModal:not(.hidden)) #bookingPage > div.sticky,
body:has(#privacyModal:not(.hidden)) #bookingPage > div.sticky,
body:has(#rentalModal:not(.hidden)) #bookingPage > div.sticky,
body:has(#footerPrivacyModal:not(.hidden)) #bookingPage > div.sticky,
body:has(#footerTermsModal:not(.hidden)) #bookingPage > div.sticky,
body:has(#footerCookieModal:not(.hidden)) #bookingPage > div.sticky {
  z-index: 10 !important;
}

#bookingPage > div.sticky.z-50 {
  z-index: 50;
}

body:has(#termsModal:not(.hidden)) #bookingPage > div.sticky.z-50,
body:has(#privacyModal:not(.hidden)) #bookingPage > div.sticky.z-50,
body:has(#rentalModal:not(.hidden)) #bookingPage > div.sticky.z-50,
body:has(#footerPrivacyModal:not(.hidden)) #bookingPage > div.sticky.z-50,
body:has(#footerTermsModal:not(.hidden)) #bookingPage > div.sticky.z-50,
body:has(#footerCookieModal:not(.hidden)) #bookingPage > div.sticky.z-50 {
  z-index: 10 !important;
}

body:has(#bookingPage:not(.hidden)) header {
  position: relative;
}

#bookingSearchStep,
#bookingVehicleStep,
#bookingAddonsStep,
#bookingCheckoutStep {
  margin-top: 0;
}

#bookingPage > div.sticky {
  width: 100%;
  left: 0;
  right: 0;
}

.progress-step {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .progress-step {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }
}

.progress-line {
  width: 1rem;
  height: 0.125rem;
  background-color: var(--slate-700);
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .progress-line {
    width: 2rem;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-content {
  width: 100%;
  max-width: 40rem;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-700) 100%);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .modal-content {
    max-width: 100%;
    max-height: 95vh;
    margin: 0.5rem;
  }
}

.dashboard-tab {
  color: #94a3b8;
  background: transparent;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .dashboard-tab {
    font-size: 1rem;
  }
}

.dashboard-tab:hover {
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.5);
}

.dashboard-tab.active {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25) inset, 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vehicle-sub-tab {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

@media (min-width: 640px) {
  .vehicle-sub-tab {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

.vehicle-sub-tab:hover {
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.5);
}

.vehicle-sub-tab.active {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25) inset;
}

.tab-content {
  animation: tabFadeIn 0.3s ease-out;
}

.vtab-content {
  animation: tabFadeIn 0.3s ease-out;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.accordion-chevron {
  transition: transform 0.3s ease;
}

.accordion-chevron.rotate-180 {
  transform: rotate(180deg);
}

.partner-accordion-item {
  transition: border-color 0.2s ease;
}

.partner-accordion-item:hover {
  border-color: rgba(34, 211, 238, 0.3);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.4);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.loader-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
}

.loader-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.steering-wheel-loader {
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.wheel-outer {
  animation: pulse 1.5s ease-in-out infinite;
}

.wheel-middle {
  animation: pulse 1.5s ease-in-out 0.3s infinite;
}

.glassmorphism {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gradient {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-glow {
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
}

.shadow-glow-purple {
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

html {
  scroll-behavior: smooth;
}

*:focus-visible {
  outline: 2px solid var(--cyan-primary);
  outline-offset: 2px;
}

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 640px;
}

@media (max-width: 768px) {
  table {
    font-size: 0.875rem;
  }
  
  table th,
  table td {
    padding: 0.75rem 0.5rem;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.scale-in {
  animation: scaleIn 0.5s ease-out;
}

@media print {
  body {
    background: white;
    color: black;
  }
  
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  button,
  .btn {
    border: 2px solid currentColor;
  }
  
  input,
  select,
  textarea {
    border: 2px solid currentColor;
  }
}

@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="date"],
  input[type="datetime-local"],
  select,
  textarea {
    font-size: 16px !important;
  }
  
  .auth-modal-content button:not(.inline-btn),
  .booking-step > .search-container button.w-full,
  #homeTransactionView form button[type="submit"] {
    width: 100%;
  }
  
  .container-mobile {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--slate-800);
}

::-webkit-scrollbar-thumb {
  background: var(--slate-700);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-primary);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--slate-700) var(--slate-800);
}

#termsModal [style*="overflow-y"]::-webkit-scrollbar-thumb {
  background: rgb(6 182 212);
}

#termsModal [style*="overflow-y"]::-webkit-scrollbar-thumb:hover {
  background: rgb(8 145 178);
}

#privacyModal [style*="overflow-y"]::-webkit-scrollbar-thumb {
  background: rgb(168 85 247);
}

#privacyModal [style*="overflow-y"]::-webkit-scrollbar-thumb:hover {
  background: rgb(147 51 234);
}

#rentalModal [style*="overflow-y"]::-webkit-scrollbar-thumb {
  background: rgb(16 185 129);
}

#rentalModal [style*="overflow-y"]::-webkit-scrollbar-thumb:hover {
  background: rgb(5 150 105);
}

#termsModal [style*="overflow-y"]::-webkit-scrollbar-track,
#privacyModal [style*="overflow-y"]::-webkit-scrollbar-track,
#rentalModal [style*="overflow-y"]::-webkit-scrollbar-track {
  background: rgb(30 41 59);
  border-radius: 0;
}

#termsModal [style*="overflow-y"]::-webkit-scrollbar,
#privacyModal [style*="overflow-y"]::-webkit-scrollbar,
#rentalModal [style*="overflow-y"]::-webkit-scrollbar {
  width: 8px;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-floatIn {
  animation: floatIn 0.6s ease-out;
}

.animate-shimmer {
  animation: shimmer 2s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease-out;
}

.status-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  display: inline-block;
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

input, select {
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button {
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

table {
  border-collapse: collapse;
}

tr {
  transition: background-color 0.2s;
}

#guideModal {
  animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
  .glass-card {
    padding: 16px;
  }
}

.animated-toast {
  opacity: 0;
  transform: translateX(400px);
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-toast.show {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 640px) {
  #notificationContainer {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    max-width: none !important;
  }

  .animated-toast {
    transform: translateY(200px);
  }

  .animated-toast.show {
    transform: translateY(0);
  }
}

/* Elite Vehicle Details Styling */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes floatingGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 197, 238, 0.3), 0 0 40px rgba(139, 92, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(34, 197, 238, 0.4), 0 0 50px rgba(139, 92, 246, 0.3);
  }
}

/* Vehicle Image Container Elite Effect */
.vehicle-image-elite {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(34, 197, 238, 0.3) inset;
  animation: floatingGlow 3s ease-in-out infinite;
}

.vehicle-image-elite::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

.vehicle-image-elite img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vehicle-image-elite img:hover {
  transform: scale(1.05);
}

.vehicle-image-elite:hover::before {
  animation: shimmer 1.5s infinite;
}

/* Vehicle Header Elite */
.vehicle-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
  border-radius: 1rem;
  border: 1px solid rgba(34, 197, 238, 0.2);
  backdrop-filter: blur(10px);
}

.vehicle-detail-header img,
.vehicle-detail-header > div:first-child {
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(34, 197, 238, 0.2);
  transition: all 0.3s ease;
}

.vehicle-detail-header:hover img,
.vehicle-detail-header:hover > div:first-child {
  box-shadow: 0 8px 30px rgba(34, 197, 238, 0.35);
}

/* Collapsible Sections */
.collapse-content {
  max-height: 9999px;
  overflow: visible;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 1;
}

/* Allow horizontal scrolling inside collapse-content when table wrapper needs it */
.collapse-content.overflow-x-auto {
  overflow-x: auto;
  overflow-y: visible;
}

.collapse-content.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  display: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.collapse-toggle {
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.collapse-toggle:hover {
  color: #22d3ee;
}

.collapse-toggle i {
  transition: transform 0.3s ease;
  display: inline-block;
}

.collapse-toggle.collapsed i {
  transform: rotate(-90deg);
}

/* Collapsed Section Styling - Reduced Height */

/* Responsive Utilities */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  
  /* Reduce padding on small screens */
  .overflow-x-auto {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Ensure tables don't overflow */
table {
  min-width: 100%;
}

table th,
table td {
  white-space: nowrap;
}

/* Responsive text truncation */
.line-clamp-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* Ensure flex items don't shrink beyond readable size */
.flex > * {
  min-width: 0;
}

/* Responsive header */
@media (max-width: 640px) {
  header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

/* Pagination Controls */
#partnersPaginationContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
}

#partnersPaginationContainer button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

#partnersPaginationContainer button:not(:disabled):hover {
  background-color: rgba(71, 85, 105, 0.8);
  color: #e2e8f0;
}

#partnersPaginationContainer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#partnersPaginationInfo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0 1rem;
  min-width: 180px;
  text-align: center;
}

/* Mobile responsive pagination */
@media (max-width: 640px) {
  #partnersPaginationContainer {
    gap: 0.5rem;
    padding: 0.75rem 0;
    margin-top: 0.75rem;
  }

  #partnersPaginationContainer button {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  #partnersPaginationInfo {
    min-width: 150px;
    padding: 0 0.5rem;
    font-size: 0.75rem;
  }

  #partnersPaginationContainer button span {
    display: none;
  }
}

/* Button and Input Alignment */
input[type="month"] {
  height: 2.5rem;
  vertical-align: middle;
}

/* Align Add Member button with filter */
@media (min-width: 640px) {
  .flex.gap-3.sm\:items-end {
    align-items: flex-end;
  }
}

/* ============================================
   ELITE STEER LOADER - UNIQUE DESIGN
   ============================================ */

/* Loader Container */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Background Blur Effect */
.loader-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(3px);
}

/* Main Loader Container */
.loader-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

/* Steering Wheel Loader */
.steering-wheel-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  animation: wheelRotate 3s linear infinite;
}

/* SVG Wheel */
.wheel-svg {
  filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.3));
}

/* Wheel Rotation */
@keyframes wheelRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Outer Wheel Ring */
.wheel-outer {
  animation: wheelPulse 2s ease-in-out infinite;
  stroke-dasharray: 345;
  stroke-dashoffset: 0;
}

@keyframes wheelPulse {
  0%, 100% {
    stroke-width: 3;
    opacity: 0.7;
  }
  50% {
    stroke-width: 4;
    opacity: 1;
  }
}

/* Middle Ring Animation */
.wheel-middle {
  animation: wheelFade 2s ease-in-out infinite;
  stroke-dasharray: 263;
  stroke-dashoffset: 0;
}

@keyframes wheelFade {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Wheel Center */
.wheel-center {
  animation: centerGlow 2s ease-in-out infinite;
}

@keyframes centerGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.6));
  }
}

/* Wheel Spokes */
.wheel-spoke {
  animation: spokeShine 2s ease-in-out infinite;
}

@keyframes spokeShine {
  0%, 100% {
    opacity: 0.6;
    fill: #22d3ee;
  }
  50% {
    opacity: 1;
    fill: #38bdf8;
  }
}

/* Loading Dots Animation */
.loader-dot {
  animation: dotPulse 1.5s ease-in-out infinite;
}

.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: 0.2s; }
.dot-3 { animation-delay: 0.4s; }
.dot-4 { animation-delay: 0.6s; }
.dot-5 { animation-delay: 0.8s; }
.dot-6 { animation-delay: 1s; }
.dot-7 { animation-delay: 1.2s; }
.dot-8 { animation-delay: 1.4s; }

@keyframes dotPulse {
  0%, 100% {
    r: 4;
    opacity: 0.4;
    fill: #22d3ee;
  }
  50% {
    r: 6;
    opacity: 1;
    fill: #0ea5e9;
  }
}

/* Static "S" Letter - stays fixed in center while wheel rotates */
.wheel-text-static {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: bold;
  color: white;
  font-family: Arial, sans-serif;
  letter-spacing: -1px;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
  pointer-events: none;
  z-index: 1;
  animation: sGlow 2s ease-in-out infinite;
}

@keyframes sGlow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
    opacity: 0.9;
  }
  50% {
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.7), 0 0 40px rgba(34, 211, 238, 0.3);
    opacity: 1;
  }
}

/* Loader Text Container */
.loader-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Loading Text */
.loader-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: 0.5px;
  animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
    letter-spacing: 0.5px;
  }
  50% {
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
    letter-spacing: 1px;
  }
}

/* Loader Message */
.loader-message {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.7);
  margin: 0;
  font-weight: 500;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Progress Bar */
.loader-progress {
  width: 200px;
  height: 4px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #0ea5e9, #06b6d4, #22d3ee);
  background-size: 200% 100%;
  animation: progressSlide 2s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes progressSlide {
  0% {
    width: 0%;
    background-position: 0% 0%;
  }
  50% {
    width: 100%;
    background-position: 100% 0%;
  }
  100% {
    width: 100%;
    background-position: 0% 0%;
  }
}

/* Mobile Responsive Loader */
@media (max-width: 640px) {
  .steering-wheel-loader {
    width: 100px;
    height: 100px;
  }

  .wheel-svg {
    width: 100px;
    height: 100px;
  }

  .loader-text {
    font-size: 1rem;
  }

  .loader-message {
    font-size: 0.85rem;
  }

  .loader-progress {
    width: 150px;
    height: 3px;
  }

  .loader-container {
    gap: 1.5rem;
  }

  .wheel-text-static {
    font-size: 26px;
  }
}

/* Prevent scrolling when loader is active */
body.loading-active {
  overflow: hidden;
}

/* ============================================
   RESPONSIVE DESIGN FIXES
   ============================================ */

/* Disable hover scale transforms on touch/small devices to prevent overlap */
@media (max-width: 768px) {
  .hover\:scale-105:hover {
    transform: none !important;
  }
  .hover\:-translate-y-1:hover {
    transform: none !important;
  }
}

/* Transaction tables - compact styling on mobile (all columns visible with horizontal scroll) */
@media (max-width: 640px) {
  #activityLog table th,
  #activityLog table td {
    padding: 0.375rem 0.5rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  #vehicleHistoryTable th,
  #vehicleHistoryTable td {
    padding: 0.375rem 0.5rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }
}

/* Notification panel mobile positioning */
@media (max-width: 640px) {
  #notificationPanel {
    position: fixed !important;
    top: 3.5rem !important;
    right: 0.5rem !important;
    left: 0.5rem !important;
    width: auto !important;
  }
}

/* Partner cards sharing badges - wrap on very small screens */
@media (max-width: 380px) {
  #partnersList .flex.gap-4 {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
}

/* Ensure modals don't overflow on small screens */
@media (max-width: 640px) {
  /* Modal internal padding reduction */
  #addPartnerModal .p-8,
  #editPartnerModal .p-8,
  #addCarModal .p-8,
  #editCarModal .p-8,
  #transactionDetailsModal .p-8,
  #trackingDetailsModal .p-8,
  #adminUsersModal .p-8 {
    padding: 1rem;
  }  
  
  /* Modal header text sizing */
  #addPartnerModal h2,
  #editPartnerModal h2,
  #addCarModal h2,
  #editCarModal h2,
  #transactionDetailsModal h2,
  #trackingDetailsModal h2,
  #adminUsersModal h2,
  #confirmModal h3 {
    font-size: 1.25rem;
  }
}

/* Vehicle detail sticky header - proper spacing */
@media (max-width: 640px) {
  #vehicleDetailView > .sticky {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Landing page stats - prevent text overflow */
@media (max-width: 380px) {
  /* Make stat numbers smaller on very tiny screens */
  .text-5xl {
    font-size: 2.25rem;
  }
}

/* Admin modal - make users list readable on mobile */
@media (max-width: 640px) {
  #adminUsersModal > div {
    max-width: 100% !important;
  }
}

/* ============================================
   UX IMPROVEMENTS
   ============================================ */

/* #5 - Mobile table scroll indicator */
.table-scroll-wrapper {
  position: relative;
}

.table-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(to left, rgba(15, 23, 42, 0.9), transparent);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
  z-index: 1;
}

.table-scroll-wrapper.scrolled-end::after {
  opacity: 0;
}

/* ============================================
   COMING SOON MODAL — Indian Road Scene
   ============================================ */

/* Scene (full-cover background) */
/* Ensure the outer modal wrapper is fully opaque — no page bleed-through */
#comingSoonModal {
  background-color: #030312;
}

.cs-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cs-scene > svg {
  width: 100%;
  height: 100%;
}

/* Star groups twinkle */
.cs-star-g1 { animation: csStarFlicker 3s   ease-in-out infinite;       }
.cs-star-g2 { animation: csStarFlicker 4.5s ease-in-out infinite 1s;    }
.cs-star-g3 { animation: csStarFlicker 3.5s ease-in-out infinite 2s;    }
@keyframes csStarFlicker {
  0%, 100% { opacity: 1;    }
  50%       { opacity: 0.3; }
}

/* Dark overlay for card readability */
.cs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 18, 0.58);
}

/* ——— Animated car tracks ——— */
.cs-car-track {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.cs-car-track svg {
  position: absolute;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Car 1 — large, near viewer */
.cs-car-tr1 { bottom: 2%; height: 82px; }
.cs-car-tr1 svg {
  height: 78px;
  width: auto;
  animation: csCarLeft 10s linear infinite;
  filter: drop-shadow(0 0 14px rgba(255, 255, 170, 0.45));
}

/* Car 2 — medium, going the other direction */
.cs-car-tr2 { bottom: 17%; height: 60px; }
.cs-car-tr2 svg {
  height: 52px;
  width: auto;
  animation: csCarRight 8s linear infinite 3s;
  filter: drop-shadow(0 0 9px rgba(255, 255, 170, 0.32));
}

/* Car 3 — small, far away */
.cs-car-tr3 { bottom: 30%; height: 40px; }
.cs-car-tr3 svg {
  height: 32px;
  width: auto;
  animation: csCarLeft 6s linear infinite 5.5s;
  filter: drop-shadow(0 0 5px rgba(255, 255, 170, 0.2));
}

@keyframes csCarLeft {
  from { transform: translateX(110vw); }
  to   { transform: translateX(-30vw); }
}
@keyframes csCarRight {
  from { transform: translateX(-30vw); }
  to   { transform: translateX(110vw); }
}

/* ——— Modal card ——— */
.cs-modal-card {
  position: relative;
  z-index: 10;
  background: rgba(9, 12, 38, 0.80);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  max-width: 460px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow:
    0 0 80px rgba(6, 182, 212, 0.14),
    0 30px 80px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* Animate card in — re-triggered via JS */
.cs-modal-card.cs-animate {
  animation: csCardIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes csCardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.93); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Close button */
.cs-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  min-height: unset;
}
.cs-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  transform: rotate(90deg) scale(1.1);
}

/* Floating car icon */
.cs-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(59, 130, 246, 0.18));
  border: 2px solid rgba(6, 182, 212, 0.35);
  margin-bottom: 1rem;
  animation: csIconFloat 3.2s ease-in-out infinite;
}
@keyframes csIconFloat {
  0%, 100% { transform: translateY(0)   rotate(-3deg); }
  50%       { transform: translateY(-9px) rotate(3deg);  }
}
.cs-icon-wrap svg { width: 44px; height: 44px; }

/* Badge */
.cs-badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.18), rgba(19, 136, 8, 0.18));
  border: 1px solid rgba(255, 153, 0, 0.38);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

/* "Coming Soon" heading */
.cs-heading {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 35%, #a855f7 70%, #ec4899 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: csGradShift 4s ease infinite;
}
@keyframes csGradShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* Subtitle */
.cs-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}
/* "ROAR" pulse */
.cs-roar {
  display: inline-block;
  font-weight: 900;
  font-style: italic;
  background: linear-gradient(135deg, #fbbf24, #ef4444, #f97316);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: csGradShift 2.2s ease infinite, csRoarPulse 1.2s ease-in-out infinite;
}
@keyframes csRoarPulse {
  0%, 100% { transform: scaleX(1)    scaleY(1);    }
  50%       { transform: scaleX(1.08) scaleY(1.1);  }
}

/* Description */
.cs-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

/* Feature pills */
.cs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.cs-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.28);
  color: #67e8f9;
  animation: csPillIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.cs-pill:nth-child(1) { animation-delay: 0.15s; }
.cs-pill:nth-child(2) { animation-delay: 0.28s; }
.cs-pill:nth-child(3) { animation-delay: 0.41s; }
@keyframes csPillIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1);   }
}

/* Progress bar */
.cs-progress-wrap  { margin-bottom: 1.5rem; }
.cs-progress-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.cs-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #a855f7, #ec4899);
  background-size: 200%;
}
.cs-progress-bar.cs-fill {
  animation: csProgressFill 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards,
             csGradShift 3s ease infinite 2.5s;
}
@keyframes csProgressFill {
  from { width: 0;   }
  to   { width: 72%; }
}
.cs-progress-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: right;
  letter-spacing: 0.04em;
}

/* Back button */
.cs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-height: unset;
}
.cs-cta-btn:hover {
  background: rgba(6, 182, 212, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.22);
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .cs-heading      { font-size: 2.4rem; }
  .cs-modal-card   { padding: 2rem 1.25rem 1.5rem; }
  .cs-icon-wrap    { width: 64px; height: 64px; }
  .cs-icon-wrap svg{ width: 36px; height: 36px; }
}

.scroll-hint {
  display: none;
  text-align: center;
  padding: 4px 0;
  font-size: 0.7rem;
  color: #94a3b8;
  animation: scrollHintPulse 2s ease-in-out infinite;
}

@media (max-width: 640px) {
  .scroll-hint {
    display: block;
  }
}

@keyframes scrollHintPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* #7 - Skeleton loading screens */
.skeleton {
  background: linear-gradient(90deg, rgba(51, 65, 85, 0.5) 25%, rgba(71, 85, 105, 0.5) 50%, rgba(51, 65, 85, 0.5) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-text-sm {
  height: 0.75rem;
  margin-bottom: 0.375rem;
}

/* Brochure Viewer Modal Scrollbar */
.brochure-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: #0891b2 #1e293b;
}

.brochure-scroll-area::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.brochure-scroll-area::-webkit-scrollbar-track {
  background: #1e293b;
  border-radius: 6px;
}

.brochure-scroll-area::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0891b2 0%, #06b6d4 100%);
  border-radius: 6px;
  border: 2px solid #1e293b;
}

.brochure-scroll-area::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #06b6d4 0%, #22d3ee 100%);
}

.brochure-scroll-area::-webkit-scrollbar-corner {
  background: #1e293b;
}

.skeleton-card {
  height: 12rem;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.skeleton-stat {
  height: 5rem;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

/* #4 - Undo toast */
.undo-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 0.5rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.undo-toast button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.undo-toast button:hover {
  background: #1d4ed8;
}

/* #11 - Tooltip for sharing type */
.info-tooltip {
  position: relative;
  display: inline-flex;
  cursor: help;
}

.info-tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #cbd5e1;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  white-space: nowrap;
  border: 1px solid #475569;
  z-index: 50;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  max-width: 250px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.info-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* #12 - Active nav section highlight */
.nav-section-active {
  border-left: 3px solid #22d3ee;
  background: rgba(34, 211, 238, 0.05);
}

/* #15 - Welcome banner */
.welcome-banner {
  animation: slideDown 0.5s ease-out;
}

/* #16 - Print-friendly CSS */
@media print {
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }

  header, footer, #notificationContainer, #notificationPanel,
  #notificationBell, #userMenu, #userIconBtn, #adminHeaderButton,
  #connDot, #eliteSteerLoader, .collapse-toggle, button,
  #ctaSection, #landingPage {
    display: none !important;
  }

  #dashboardView, #vehicleDetailView, #homeTransactionView, #activityLog {
    display: block !important;
  }

  .bg-slate-800, .bg-slate-700, .bg-slate-900 {
    background: white !important;
    border-color: #ddd !important;
    color: black !important;
  }

  .text-white, .text-slate-300, .text-slate-400, .text-emerald-400,
  .text-rose-400, .text-cyan-400, .text-blue-400, .text-amber-400,
  .text-purple-400 {
    color: black !important;
  }

  table { border-collapse: collapse; width: 100%; }
  th, td { border: 1px solid #ccc; padding: 6px 10px; }
  th { background: #f0f0f0 !important; }
}

/* ============= PREMIUM BOOKING PLATFORM STYLES ============= */

/* Booking step transitions */
.booking-step {
  animation: fadeInUp 0.5s ease-out;
}

/* Vehicle card hover effects */
#bookingVehicleList > div {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#bookingVehicleList > div:hover {
  transform: translateY(-8px);
}

/* Image zoom on hover */
#bookingVehicleList img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Input focus effects - desktop only */
@media (min-width: 768px) {
  #bookingPage input:focus,
  #bookingPage textarea:focus {
    transform: scale(1.01);
  }
}

/* Error state pulse */
.border-red-500 {
  animation: errorPulse 0.5s ease-in-out;
}

@keyframes errorPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
}

/* Price breakdown entrance */
#pricingBreakdown:not(.hidden) {
  animation: priceSlideDown 0.4s ease-out;
}

@keyframes priceSlideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
}

/* Filter button active state */
.filter-btn.active {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  #bookingVehicleList > div:hover {
    transform: translateY(-4px);
  }
}

/* ============= END PREMIUM BOOKING STYLES ============= */

/* ============= MOBILE RESPONSIVE ENHANCEMENTS ============= */

/* Ensure no horizontal overflow */
html {
  overflow-x: hidden;
}

/* Mobile: reduce hero heading sizes */
@media (max-width: 640px) {
  #landingPage h2.text-3xl {
    font-size: 1.5rem;
  }
  
  #landingPage .text-2xl {
    font-size: 1.25rem;
  }
  
  /* Reduce feature card icon sizes */
  #landingPage .w-16.h-16 {
    width: 3rem;
    height: 3rem;
  }
  
  /* Booking success modal */
  #bookingSuccessModal .p-8 {
    padding: 1.25rem;
  }
  
  #bookingSuccessModal .w-24.h-24 {
    width: 4rem;
    height: 4rem;
  }
  
  #bookingSuccessModal .text-6xl {
    font-size: 2.5rem;
  }

  /* Footer legal modals padding */
  #footerPrivacyModal .p-6,
  #footerTermsModal .p-6,
  #footerCookieModal .p-6 {
    padding: 1rem;
  }

  /* Tracking details modal */
  #trackingDetailsModal .p-6 {
    padding: 1rem;
  }
  
  /* Vehicle detail header buttons */
  #vehicleDetailView .w-7.h-7 {
    width: 2rem;
    height: 2rem;
  }
  
  /* Dashboard stat cards - text wrapping */
  #dashboardView .text-lg {
    font-size: 1rem;
  }
  
  /* Table scroll hint visibility */
  .scroll-hint {
    display: flex;
  }
  
  /* Booking search heading */
  #bookingSearchStep h2 {
    font-size: 1.5rem;
  }
}

/* Very small screens (< 380px) */
@media (max-width: 380px) {
  /* Further reduce padding */
  #landingPage section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Reduce booking form padding */
  #bookingSearchForm {
    padding: 1rem;
  }
  
  /* Stack booking stats vertically */
  #bookingSearchForm .flex.items-center.justify-center {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Hide stat dividers on very small screens */
  #bookingSearchForm .h-4.w-px {
    display: none;
  }
}

/* ============= END MOBILE RESPONSIVE ENHANCEMENTS ============= */
