@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #38bdf8;
  --accent-cyan: #06b6d4;
  --navy-950: #070d19;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  
  /* Status Colors */
  --status-available: #10b981;
  --status-available-bg: #d1fae5;
  --status-reserved: #f59e0b;
  --status-reserved-bg: #fef3c7;
  --status-rented: #3b82f6;
  --status-rented-bg: #dbeafe;
  --status-pending: #8b5cf6;
  --status-pending-bg: #ede9fe;
  --status-maintenance: #ef4444;
  --status-maintenance-bg: #fee2e2;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px -5px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.35);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--slate-50);
  color: var(--navy-800);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* CLIENT SIDEBAR & PORTAL LAYOUT */
.client-portal-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  background-color: var(--slate-50);
}

.client-sidebar {
  width: 275px;
  min-width: 275px;
  max-width: 275px;
  background: linear-gradient(180deg, #090f1f 0%, #0f172a 55%, #090e1c 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.28);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.client-sidebar::-webkit-scrollbar {
  width: 5px;
}
.client-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.client-sidebar-header {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.client-sidebar-body {
  padding: 16px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #64748b;
  padding: 8px 12px 4px;
}

.client-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
}

.client-sidebar-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.client-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(3px);
}

.client-sidebar-link:hover i {
  color: var(--accent);
}

.client-sidebar-link.active {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.32) 0%, rgba(2, 132, 199, 0.08) 100%);
  color: #38bdf8;
  font-weight: 700;
  border-left: 3px solid #38bdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.client-sidebar-link.active i {
  color: #38bdf8;
}

.sidebar-link-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.client-sidebar-support-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px;
  margin-top: auto;
}

.client-sidebar-footer {
  padding: 16px 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
}

.client-sidebar-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.client-main-wrapper {
  margin-left: 275px;
  width: calc(100% - 275px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--slate-50);
}

.client-content-area {
  flex: 1;
}

.client-mobile-topbar {
  display: none;
}

.client-sidebar-backdrop {
  display: none;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-heading);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.55);
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 60px;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 13, 25, 0.94) 0%, rgba(15, 23, 42, 0.82) 55%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 30px;
}

/* SEARCH BOOKING WIDGET */
.search-widget {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  box-shadow: var(--shadow-lg);
  color: var(--navy-900);
  margin-top: 30px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) 180px;
  gap: 16px;
  align-items: flex-end;
}

.input-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-600);
  margin-bottom: 6px;
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--navy-900);
  background: var(--white);
  transition: var(--transition);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* FLEET SECTION */
.section {
  padding: 80px 5%;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.car-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}

.car-image-box {
  position: relative;
  height: 220px;
  background: #f1f5f9;
  overflow: hidden;
}

.car-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover .car-image-box img {
  transform: scale(1.05);
}

.car-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-available { background: var(--status-available-bg); color: #065f46; }
.badge-reserved { background: var(--status-reserved-bg); color: #92400e; }
.badge-rented { background: var(--status-rented-bg); color: #1e40af; }
.badge-maintenance { background: var(--status-maintenance-bg); color: #991b1b; }

.car-category-pill {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.car-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.car-plate {
  color: var(--slate-400);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.car-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 20px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--slate-600);
  font-weight: 600;
}

.car-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.car-price {
  display: flex;
  flex-direction: column;
}

.price-val {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
}

.price-sub {
  font-size: 0.78rem;
  color: var(--slate-400);
}

/* ADMIN DASHBOARD LAYOUT */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 270px;
  background: var(--navy-900);
  color: var(--slate-200);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.admin-main {
  flex-grow: 1;
  margin-left: 270px;
  padding: 30px;
  background: #f8fafc;
}

.sidebar-brand {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.92rem;
}

.sidebar-item.active a, .sidebar-item a:hover {
  background: rgba(2, 132, 199, 0.2);
  color: var(--accent);
}

/* KPI CARDS */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--white);
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-info h4 {
  font-size: 0.85rem;
  color: var(--slate-600);
  font-weight: 600;
  margin-bottom: 8px;
}

.kpi-info .kpi-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-900);
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.kpi-icon.blue { background: #e0f2fe; color: #0284c7; }
.kpi-icon.green { background: #d1fae5; color: #10b981; }
.kpi-icon.amber { background: #fef3c7; color: #f59e0b; }
.kpi-icon.purple { background: #ede9fe; color: #8b5cf6; }

/* DATA TABLES */
.table-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 30px;
}

.table-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--slate-200);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #f8fafc;
  padding: 12px 20px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-600);
  border-bottom: 1px solid var(--slate-200);
}

.data-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}

.data-table tr:hover {
  background: #fbfcfe;
}

/* FOOTER */
.footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 60px 5% 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

/* MOBILE TOPBAR & BACKDROP */
.client-mobile-topbar {
  display: none;
  height: 64px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(11, 19, 41, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.client-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1090;
  opacity: 0;
  transition: opacity 0.28s ease;
  cursor: pointer;
}

.client-sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

.mobile-menu-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--accent);
}

/* RESPONSIVE LAYOUT CLASSES */
.responsive-search-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 16px;
  align-items: center;
}

.search-field-col {
  border-right: 1px solid #e2e8f0;
  padding-right: 16px;
}

.responsive-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 50px;
  align-items: center;
}

.fleet-listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 35px;
}

.vehicle-detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}

/* GLOBAL MOBILE & TABLET MEDIA QUERIES */
@media (max-width: 1024px) {
  .client-mobile-topbar {
    display: flex;
  }
  .client-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    max-width: 85vw;
    width: 290px;
    box-shadow: 12px 0 50px rgba(0, 0, 0, 0.6);
  }
  .client-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close-btn {
    display: inline-flex;
  }
  .client-main-wrapper {
    margin-left: 0;
    width: 100%;
    padding-top: 64px;
  }
  .responsive-search-form {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .search-field-col:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }
  .search-btn-col {
    grid-column: 1 / -1;
  }
  .search-btn-col button {
    width: 100%;
    justify-content: center;
  }
  .responsive-about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .fleet-listing-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .vehicle-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-main {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .responsive-search-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .search-field-col {
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    padding-right: 0 !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-section {
    padding: 70px 4% 35px !important;
  }
  .hero-section h1 {
    font-size: 2.1rem !important;
  }
  .hero-section p {
    font-size: 0.95rem !important;
  }
}

