@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Modal-as-Page: full-screen native screen on mobile ──────────────────*/
@media (max-width: 639px) {
  [data-modal-page] {
    background-color: transparent !important;
    padding: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  [data-modal-page] > [data-modal-inner] {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    overflow-y: auto;
  }
  /* Slide-in from right on open */
  [data-modal-page]:not(.hidden) > [data-modal-inner] {
    animation: mobilePageSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }
}
@keyframes mobilePageSlideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* ── Header quick-access menu animation ───────────────────────────*/
#headerMenuDropdown {
  transform-origin: top right;
  transform: scale(0.94) translateY(-4px);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.15s ease;
}
#headerMenuDropdown.menu-visible {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ── Bottom-sheet modal safe-area (iPhone home bar) ─────────────────────────*/
@media (max-width: 639px) {
  [data-modal-inner] {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* ── Fleet Category Placeholder Cards ───────────────── */
@keyframes fleetBorderSpin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.fleet-cat-wrap {
  padding: 1.5px;
  border-radius: 1rem;
  background-size: 300% 300%;
  animation: fleetBorderSpin 5s ease infinite;
}
.fleet-cat-wrap-a {
  background-image: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6, #06b6d4);
  box-shadow: 0 8px 40px rgba(6,182,212,0.22);
}
.fleet-cat-wrap-b {
  background-image: linear-gradient(135deg, #6366f1, #3b82f6, #06b6d4, #6366f1);
  box-shadow: 0 8px 40px rgba(99,102,241,0.22);
}
.fleet-cat-wrap-c {
  background-image: linear-gradient(135deg, #a855f7, #ec4899, #7e22ce, #a855f7);
  box-shadow: 0 8px 40px rgba(168,85,247,0.22);
}
.fleet-cat-inner {
  border-radius: calc(1rem - 1.5px);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  min-height: clamp(130px, 25vw, 168px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.fleet-cat-inner-a { background: linear-gradient(135deg, #082f49 0%, #0c6b8a 45%, #1e40af 100%); }
.fleet-cat-inner-b { background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 45%, #0369a1 100%); }
.fleet-cat-inner-c { background: linear-gradient(135deg, #2e1065 0%, #6b21a8 45%, #9f1239 100%); }
.fleet-cat-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.fleet-cat-ghost {
  position: absolute;
  top: -10px;
  right: -6px;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ── Auth Modal ─────────────────────────────────────── */
/* ── Universal Modal Glow Border ─────────────────────── */
@keyframes modalBorderGlow {
  0%   { box-shadow: 0 0 0 1.5px rgba(6,182,212,0.75),  0 0 28px rgba(6,182,212,0.30),  0 24px 64px rgba(0,0,0,0.55); }
  25%  { box-shadow: 0 0 0 1.5px rgba(99,102,241,0.75), 0 0 28px rgba(99,102,241,0.30), 0 24px 64px rgba(0,0,0,0.55); }
  50%  { box-shadow: 0 0 0 1.5px rgba(168,85,247,0.75), 0 0 28px rgba(168,85,247,0.30), 0 24px 64px rgba(0,0,0,0.55); }
  75%  { box-shadow: 0 0 0 1.5px rgba(236,72,153,0.75), 0 0 28px rgba(236,72,153,0.30), 0 24px 64px rgba(0,0,0,0.55); }
  100% { box-shadow: 0 0 0 1.5px rgba(6,182,212,0.75),  0 0 28px rgba(6,182,212,0.30),  0 24px 64px rgba(0,0,0,0.55); }
}
[data-modal-inner] {
  animation: modalBorderGlow 5s ease-in-out infinite;
}

@keyframes authBorderSpin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.auth-modal-border {
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #a855f7, #ec4899, #06b6d4);
  background-size: 300% 300%;
  animation: authBorderSpin 5s ease infinite;
  border-radius: 1rem;
  padding: 1px;
  box-shadow: 0 0 0 0 transparent, 0 0 28px rgba(6,182,212,0.30), 0 24px 64px rgba(0,0,0,0.55);
  animation: authBorderSpin 5s ease infinite, modalBorderGlow 5s ease-in-out infinite;
}
.auth-card {
  background: #1e293b;
  border-radius: calc(1rem - 1px);
  background-image: radial-gradient(rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.auth-input-login {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input-login:focus {
  border-color: #06b6d4 !important;
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
  outline: none;
}
.auth-input-signup {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input-signup:focus {
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
  outline: none;
}
.auth-tab-strip {
  border-bottom: 1px solid rgba(51,65,85,0.6);
  padding: 8px 10px 0;
  gap: 4px;
}
.auth-tab-btn {
  position: relative;
  transition: color 0.2s;
  padding-bottom: 10px;
  border-radius: 0;
  color: #94a3b8;
}
.auth-tab-btn:hover {
  color: #e2e8f0;
}
/* glowing bottom border on active tab */
.auth-tab-btn.auth-tab-active {
  color: transparent;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
}
.auth-tab-btn.auth-tab-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  width: 80%;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #a855f7);
  box-shadow: 0 0 8px rgba(6,182,212,0.6), 0 0 16px rgba(59,130,246,0.3);
}
/* ─────────────────────────────────────────────────── */

: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;
  -webkit-appearance: none;
  background-image: none;
  padding-right: 2.75rem;
  color: #ffffff;
  color-scheme: dark;
}

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;
  }
}

#postTripFeedbackModal {
  z-index: 9999 !important;
}

.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;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

@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);
  }
}

/* (old duplicate loader rules removed — see ELITE STEER LOADER section below) */

.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 — CINEMATIC SPEEDOMETER
   ============================================ */

/* Overlay */
.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.4s ease, visibility 0.4s ease;
}

.loader-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Cinematic dark backdrop — deep cockpit black */
.loader-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%,
      rgba(6, 20, 45, 0.97) 0%,
      rgba(2, 6, 16, 0.99) 100%);
  backdrop-filter: blur(6px);
}

/* Subtle ambient light bloom behind the gauge */
.loader-background::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  width: 480px; height: 360px;
  background: radial-gradient(ellipse at center,
      rgba(6, 182, 212, 0.10) 0%,
      rgba(14, 165, 233, 0.04) 40%,
      transparent 70%);
  pointer-events: none;
}

/* Main container */
.loader-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

/* ── Speedometer wrapper ──────────────────────── */
.speedo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* SVG entrance */
.speedo-svg {
  display: block;
  animation: speedoFadeIn 0.6s ease-out both;
  filter: drop-shadow(0 0 28px rgba(6, 182, 212, 0.22))
          drop-shadow(0 8px 40px rgba(0, 0, 0, 0.7));
}

@keyframes speedoFadeIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* Speed arc dash animation (draw-in on appear) */
.speedo-arc {
  animation: arcReveal 1s ease-out 0.3s both, arcBreath 3s ease-in-out 1.3s infinite;
}

@keyframes arcReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes arcBreath {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1;   }
}

/* Tick marks pulse */
.speedo-ticks {
  animation: tickPulse 2.5s ease-in-out infinite;
}

@keyframes tickPulse {
  0%, 100% { opacity: 0.75; }
  50%       { opacity: 1;    filter: drop-shadow(0 0 3px rgba(34,211,238,0.8)); }
}

/* ── Needle sweep ──────────────────────────────── */
/* Needle starts at -110deg (pointing at "0") then sweeps +160deg to ~160 and back */
.speedo-needle-group {
  transform-origin: 100px 100px;
  animation: needleSweep 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes needleSweep {
  0%    { transform: rotate(225deg); }   /* 0 km/h  — lower-left  */
  38%   { transform: rotate(405deg); }   /* ~100 km/h — 12 o'clock */
  44%   { transform: rotate(416deg); }   /* spring overshoot       */
  54%   { transform: rotate(405deg); }   /* settle                 */
  65%   { transform: rotate(405deg); }   /* hold                   */
  100%  { transform: rotate(225deg); }   /* return to 0            */
}

/* Needle tip neon flicker */
.needle-body {
  animation: needleFlicker 3s ease-in-out infinite;
}

@keyframes needleFlicker {
  0%, 38%, 65%, 100% { opacity: 1;    }
  50%                 { opacity: 0.91; }
}

/* Pivot centre glow */
.pivot-glow {
  animation: pivotPulse 1.8s ease-in-out infinite;
}

@keyframes pivotPulse {
  0%, 100% { opacity: 0.65; }
  50%       { opacity: 1;    filter: drop-shadow(0 0 4px #22d3ee); }
}

/* ── Bokeh / lens flare circles ──────────────── */
/* Bokeh / lens-flare spots */
.bokeh {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.24);
}

.bokeh-1 { width: 15px; height: 15px; top: 6px;     left: 14px;  animation: bokehFloat 4.2s ease-in-out infinite 0.0s; }
.bokeh-2 { width:  9px; height:  9px; top: 30px;    right: 10px; animation: bokehFloat 3.6s ease-in-out infinite 0.8s; }
.bokeh-3 { width: 11px; height: 11px; bottom: 20px; left:   6px; animation: bokehFloat 5.0s ease-in-out infinite 1.4s; }
.bokeh-4 { width:  7px; height:  7px; bottom: 12px; right: 16px; animation: bokehFloat 3.3s ease-in-out infinite 0.3s; }

@keyframes bokehFloat {
  0%, 100% { opacity: 0.18; transform: translateY(0px)   scale(1);    }
  50%       { opacity: 0.46; transform: translateY(-7px) scale(1.22); }
}

/* ── Text ──────────────────────────────────────── */
/* Text */
.loader-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  animation: loaderFadeUp 0.8s ease-out 0.3s both;
}

@keyframes loaderFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.loader-text {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(120deg, #22d3ee 0%, #38bdf8 55%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: 0.04em;
  animation: loaderTextBreath 2.8s ease-in-out infinite;
}

@keyframes loaderTextBreath {
  0%, 100% { opacity: 0.80; }
  50%       { opacity: 1;   }
}

.loader-message {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.70);
  margin: 0;
  font-weight: 400;
  min-height: 1.2em;
}

/* ── Mobile ──────────────────────────────────── */
/* Mobile */
@media (max-width: 640px) {
  .speedo-svg      { width: 80px; height: 80px; }
  .loader-text     { font-size: 0.92rem; }
  .loader-message  { font-size: 0.75rem; }
  .bokeh-2, .bokeh-4 { display: none; }
  .bokeh-1         { width: 11px; height: 11px; }
  .bokeh-3         { width:  8px; height:  8px; }
  .loader-container { gap: 1.1rem; }
}

/* Large / TV */
@media (min-width: 1536px) {
  .speedo-svg      { width: 130px; height: 130px; }
  .loader-text     { font-size: 1.35rem; }
  .loader-message  { font-size: 0.95rem; }
}

/* 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, modalBorderGlow 5s 0.65s ease-in-out infinite;
}
@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;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN ENHANCEMENTS
   Mobile → Tablet → Laptop → Desktop → TV/4K
   ============================================ */

/* --- Global: cap max content width for ultra-wide / TV screens --- */
main {
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Global: ensure all images scale properly on all devices --- */
img {
  max-width: 100%;
}

/* --- Responsive chart height (dashboard overview) --- */
.chart-responsive {
  height: 250px;
}

@media (min-width: 1024px) {
  .chart-responsive {
    height: 310px;
  }
}

@media (min-width: 1280px) {
  .chart-responsive {
    height: 370px;
  }
}

@media (min-width: 1536px) {
  .chart-responsive {
    height: 440px;
  }
}

/* --- Dashboard stat values: scale up on large / TV screens --- */
@media (min-width: 1280px) {
  #totalIncome, #totalExpense, #totalAllowance, #netProfit, #carCount {
    font-size: 1.5rem; /* text-2xl */
  }
}

@media (min-width: 1536px) {
  #totalIncome, #totalExpense, #totalAllowance, #netProfit, #carCount {
    font-size: 1.75rem; /* text-[1.75rem] */
  }
}

/* --- Loader: scale up for large / TV screens --- */
@media (min-width: 1536px) {
  .speedo-svg {
    width: 320px;
    height: 320px;
  }
  .loader-text {
    font-size: 1.5rem;
  }
  .loader-message {
    font-size: 1.1rem;
  }
}

/* --- Touch devices: ensure minimum 44px touch target on interactive header elements --- */
@media (hover: none) and (pointer: coarse) {
  header button {
    min-width: 44px;
    min-height: 44px;
  }
  .dashboard-tab {
    min-height: 44px;
  }
  .vehicle-sub-tab {
    min-height: 44px;
  }
}

/* --- Very small screens (360px and below): reduce modal padding --- */
@media (max-width: 360px) {
  #crmAddCustomerModal > div > .p-5,
  #crmEditCustomerModal > div > .p-5,
  #adminAddUserModal > div > .p-5,
  #adminUsersModal > div > .p-4 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* --- Very small screens: modal max height with fallback --- */
@media (max-width: 400px) {
  #adminUsersModal > div {
    max-height: 100dvh;
    max-height: 100vh;
  }
  #crmAddCustomerModal > div,
  #crmEditCustomerModal > div,
  #adminAddUserModal > div,
  #crmWADispatchModal > div {
    max-height: 96dvh;
    max-height: 96vh;
    overflow-y: auto;
  }
}

/* --- Welcome banner: stack on very small screens --- */
@media (max-width: 480px) {
  #welcomeBanner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* --- All tabs: icon-only on phones (≤480px), text visible on larger screens --- */
@media (max-width: 480px) {
  .dashboard-tab span,
  .vehicle-sub-tab span {
    display: none;
  }
  .dashboard-tab,
  .vehicle-sub-tab {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* --- Public fleet and booking vehicle images: consistent height --- */
#publicFleetGrid img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
}

@media (min-width: 1280px) {
  #publicFleetGrid img {
    height: 15rem;
  }
}

@media (min-width: 1536px) {
  #publicFleetGrid img {
    height: 17rem;
  }
}

/* --- Notification panel: full-width on extra-small phones --- */
@media (max-width: 360px) {
  #notificationPanel {
    left: 0.25rem !important;
    right: 0.25rem !important;
    width: auto !important;
  }
}

/* --- Vehicle booking steps: responsive padding on 2xl --- */
@media (min-width: 1536px) {
  #bookingVehicleStep .w-full,
  #bookingCheckoutStep .w-full,
  #bookingAddonsStep .w-full {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* --- Vehicle sub-tabs: scale up on large screens --- */
@media (min-width: 1280px) {
  .vehicle-sub-tab {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* --- Progress steps in booking flow: scale on large screens --- */
@media (min-width: 1280px) {
  .progress-step {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }
  .progress-line {
    width: 3rem;
  }
}

/* --- Booking search heading: scale on xl+ --- */
@media (min-width: 1280px) {
  #bookingSearchStep h2 {
    font-size: 2.75rem;
  }
}

@media (min-width: 1536px) {
  #bookingSearchStep h2 {
    font-size: 3.25rem;
  }
}

/* --- Partner cards: better spacing on large screens --- */
@media (min-width: 1280px) {
  #partnersList .space-y-2 > div {
    padding: 1rem 1.25rem;
  }
}

/* --- Table: more padding on xl screens for better readability --- */
@media (min-width: 1280px) {
  table th,
  table td {
    padding: 0.625rem 0.875rem;
  }
}

/* --- Footer: ensure links are readable on all sizes --- */
footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* --- Footer social links: 44px minimum touch target on touch devices --- */
@media (hover: none) and (pointer: coarse) {
  footer a.rounded-full {
    min-width: 44px;
    min-height: 44px;
  }
}

/* --- Landing 'By The Numbers' stat values: scale on xl+ screens --- */
@media (min-width: 1280px) {
  #landingByTheNumbers .font-black.mb-3 {
    font-size: 3.75rem; /* text-6xl */
  }
}

@media (min-width: 1536px) {
  #landingByTheNumbers .font-black.mb-3 {
    font-size: 4.5rem; /* text-7xl */
  }
}

/* --- Booking confirmation / success cards: responsive --- */
@media (max-width: 640px) {
  #bookingSuccessStep .text-6xl {
    font-size: 3rem;
  }
}

/* --- Prevent overflow issues on tables inside modals --- */
.modal-content .overflow-x-auto,
.modal-overlay .overflow-x-auto {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* --- Fix: promotional campaign panel on very narrow mobile --- */
@media (max-width: 360px) {
  #adminPanelCustomers .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

@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 ============= */

/* ============= ICON BUTTON CENTERING FIX ============= */
/*
  Font Awesome glyphs can have unequal left/right bearings causing them
  to appear off-center inside flex buttons. margin-right compensates for
  this rendering offset. :only-child ensures export/label buttons
  (where <i> has a <span> sibling) are NOT affected.
*/
button > .fas:only-child,
button > .far:only-child,
button > .fab:only-child,
button > .fal:only-child,
button > .fat:only-child,
button > .fad:only-child {
  line-height: 1;
  margin-right: 10px;
}
/* ============= END ICON BUTTON CENTERING FIX ============= */

/* ============= FLEET CALENDAR ============= */

/* ---- Vehicle colour palette (used by both monthly + gantt) ---- */
.vc-cyan    { background-color: #0e7490; border-left: 3px solid #22d3ee; }
.vc-emerald { background-color: #065f46; border-left: 3px solid #34d399; }
.vc-done    { background-color: #374151; border-left: 3px solid #6b7280; opacity: 0.75; }
.vc-violet  { background-color: #4c1d95; border-left: 3px solid #a78bfa; }
.vc-amber   { background-color: #92400e; border-left: 3px solid #fbbf24; }
.vc-rose    { background-color: #9f1239; border-left: 3px solid #fb7185; }
.vc-blue    { background-color: #1e3a5f; border-left: 3px solid #60a5fa; }
.vc-orange  { background-color: #7c2d12; border-left: 3px solid #fb923c; }
.vc-teal    { background-color: #134e4a; border-left: 3px solid #2dd4bf; }

/* Completed booking — muted grey regardless of vehicle colour */
.fc-pill-done,
.gantt-block.fc-pill-done  { background-color: #374151 !important; border-left-color: #6b7280 !important; opacity: 0.75; }

/* Active booking — slightly brighter */
.fc-pill-active,
.gantt-block.fc-pill-active { filter: brightness(1.2); }

/* ---- Monthly Calendar ---- */
.fc-monthly {
  user-select: none;
}

.fc-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}

.fc-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  padding: 6px 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fc-day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.fc-day-cell {
  min-height: 80px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.fc-day-cell:hover {
  background: #263346;
  border-color: #06b6d4;
}

.fc-day-empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}
.fc-day-empty:hover { background: transparent; border-color: transparent; }

.fc-today {
  background: #1e3a5f !important;
  border-color: #3b82f6 !important;
}

.fc-today-num {
  color: #60a5fa !important;
  background: #1e3a5f;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-weekend {
  background: #1a2235;
}

.fc-day-num {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1;
  padding: 2px 3px;
  align-self: flex-end;
}

.fc-pills {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}

.fc-pill {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: filter 0.15s;
  max-width: 100%;
}

.fc-pill:hover { filter: brightness(1.2); }

/* ---- Gantt / Fleet Timeline ---- */
.fc-gantt {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
}

.gantt-header {
  display: grid;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1e293b;
  border-bottom: 2px solid #334155;
}

.gantt-day-header {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
  padding: 6px 2px;
  border-right: 1px solid #1e293b;
}

.gantt-weekend { background: #1a2235; color: #64748b; }
.gantt-today-header { background: #1e3a5f; color: #60a5fa; }

.gantt-label-cell {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  padding: 6px 8px;
  background: #1e293b;
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 2px solid #334155;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 140px;
  max-width: 140px;
  overflow: hidden;
}

.gantt-reg {
  font-size: 9px;
  color: #64748b;
  font-weight: 400;
}

.gantt-body {
  display: flex;
  flex-direction: column;
}

.gantt-row {
  display: grid;
  border-bottom: 1px solid #1e293b;
  min-height: 38px;
  align-items: stretch;
}

.gantt-row-alt { background: #1a2539; }

.gantt-cell {
  border-right: 1px solid #252f3f;
  cursor: pointer;
  transition: background 0.1s;
}

.gantt-cell:hover { background: #263346; }
.gantt-cell.gantt-weekend { background: #1a2235; }
.gantt-cell.gantt-today-col { background: #1e3a5f26; }

.gantt-block {
  display: flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 4px;
  margin: 3px 2px;
  cursor: pointer;
  transition: filter 0.15s;
  min-height: 28px;
  overflow: hidden;
}

.gantt-block:hover { filter: brightness(1.15); }

.gantt-block-text {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .fc-day-cell { min-height: 60px; }
  .fc-day-num  { font-size: 10px; }
  .fc-pill     { font-size: 9px; padding: 1px 3px; }
  .gantt-label-cell { min-width: 90px; max-width: 90px; font-size: 10px; }
  .gantt-day-header { font-size: 9px; padding: 4px 1px; }
}

/* ============= END FLEET CALENDAR ============= */

/* ============================================================
   COMPREHENSIVE RESPONSIVE ENHANCEMENTS
   Covers: fleet calendar, booking controls, toll form,
           TV/large screens, and edge-case mobile fixes.
   ============================================================ */

/* ---- 1. Monthly fleet calendar: allow horizontal scroll on small screens ---- */
/* The gantt view has its own overflow-x:auto via .fc-gantt, but the monthly
   view's 7-column grid would compress cells to ~45px on a 320px screen.
   Setting a min-width on .fc-monthly makes cells stay readable and the
   container scrolls instead of squashing. */
#fleetCalendarContainer {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fc-monthly {
  min-width: 420px; /* 7 cols × 60px min each */
}

/* ---- 2. Fleet calendar booking controls: compact on small screens ---- */
/* On ≤ 540px: hide legend text labels (keep coloured dots) to save space.
   On ≤ 360px: show only the icon inside the view-toggle button. */
@media (max-width: 540px) {
  /* Legend badge text (e.g. "Confirmed", "Active", "Completed") */
  #tabBookings .ml-auto .text-xs.font-medium.text-slate-300 {
    display: none;
  }
  /* Keep the coloured dot still visible */
  #tabBookings .ml-auto span[style] {
    flex-shrink: 0;
  }
  /* Vehicle filter: full width below controls row */
  #calVehicleFilter {
    flex: 1 1 120px;
    min-width: 0;
  }
}

@media (max-width: 360px) {
  /* View toggle button: icon only */
  #calViewToggleBtn {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    gap: 0;
  }
  #calViewToggleBtn .fas + * {
    display: none;
  }
}

/* ---- 3. Toll / washing / fuel charges: single column on very small screens ---- */
/* This 3-column grid inside the transaction form becomes too tight at ≤ 400px. */
@media (max-width: 400px) {
  #tollWashingChargesRow .grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---- 4. Very large / TV screen max-width cap ---- */
/* Without a cap the dashboard stretches to fill 3840 px+ on 4K TVs.
   Centring with a 2400 px cap keeps things readable. */
@media (min-width: 2560px) {
  main {
    max-width: 2400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---- 5. KPI stat cards: smaller text on very tiny phones (< 360px) ---- */
@media (max-width: 359px) {
  #totalIncome,
  #totalExpense,
  #totalAllowance,
  #netProfit,
  #carCount {
    font-size: 0.875rem; /* 14px */
  }
  /* KPI card label text */
  #dashboardView .grid > div > p:first-child {
    font-size: 0.5625rem; /* 9px */
  }
}

/* ---- 6. Transaction history table: match header sticky bg to row bg ---- */
/* The tbody rows use bg #1e293b (slate-800), but the sticky <th> uses #0f172a.
   Normalise so the sticky shadow looks consistent. */
#activityLog table th:last-child {
  background: #0f172a;
}

/* ---- 7. Fleet vehicle cards: consistent minimum touch target on phones ---- */
@media (hover: none) and (pointer: coarse) {
  #carsList .cursor-pointer {
    min-height: 44px;
  }
}

/* ---- 8. Modal inner padding on phones < 380px ---- */
/* Many modals use p-4 sm:p-8. On very small phones reduce horizontal padding
   so content doesn't feel cramped. */
@media (max-width: 379px) {
  [data-modal-inner] {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* ---- 9. Booking checkout sticky summary: prevent overlap with content ---- */
/* On ≤ 1023px the sticky summary becomes static (handled elsewhere),
   but on very large screens ensure it doesn't grow beyond viewport. */
@media (min-width: 1024px) {
  #bookingCheckoutStep .lg\:sticky {
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
}

/* ---- 10. Landing page hero text: scale up on 4K screens ---- */
@media (min-width: 2560px) {
  #landingPage .text-4xl { font-size: 3.5rem; }
  #landingPage .text-5xl { font-size: 4.5rem; }
  #landingPage .text-6xl { font-size: 5.5rem; }
  #landingPage .text-7xl { font-size: 6.5rem; }
}

/* ---- 11. Booking flow progress bar: full width on mobile ---- */
@media (max-width: 480px) {
  #bookingPage .progress-line {
    display: none;
  }
}

/* ---- 12. Admin modal tab strip: sticky top on mobile so tabs always visible ---- */
#adminUsersModal [role="tablist"],
#adminUsersModal .overflow-x-auto:first-of-type {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #1e293b;
}

/* ---- 13. Notification panel: never wider than the viewport ---- */
#notificationPanel {
  max-width: calc(100vw - 1.5rem);
}

/* ---- 14. Auth modal: full-screen on very small phones ---- */
@media (max-width: 400px) {
  #authModal > div[data-modal-inner],
  #authModal > div {
    margin: 0.5rem;
    border-radius: 1rem;
  }
}

/* ---- 15. Public fleet vehicle image height on very small screens ---- */
@media (max-width: 375px) {
  #publicFleetGrid img {
    height: 10rem;
  }
  .vehicle-card img {
    height: 9rem;
  }
}

/* ============================================================
   END COMPREHENSIVE RESPONSIVE ENHANCEMENTS
   ============================================================ */ */
