/* ============================================================
   DATAZAD RENT CAR - Main Stylesheet
   Car Rental Management System
   Theme: Dark Blue (#1a237e) / Gold (#c5a55a)
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Variables & Theming
   ------------------------------------------------------------ */
:root {
  /* Primary Colors */
  --primary: #1a237e;
  --primary-dark: #0d1557;
  --primary-light: #283593;
  --primary-rgb: 26, 35, 126;

  /* Accent Colors */
  --accent: #c5a55a;
  --accent-light: #d4b96e;
  --accent-dark: #a88a45;
  --accent-rgb: 197, 165, 90;

  /* Background Colors */
  --bg: #f4f6f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fc;
  --bg-input: #ffffff;
  --bg-disabled: #e9ecef;

  /* Text Colors */
  --text: #2c3e50;
  --text-light: #5a6a7e;
  --text-muted: #8a9aa8;
  --text-inverse: #ffffff;

  /* Border Colors */
  --border: #e0e4ea;
  --border-light: #edf0f5;

  /* Sidebar */
  --sidebar-bg: linear-gradient(180deg, #1a237e 0%, #0d1557 100%);
  --sidebar-text: #b8c2d6;
  --sidebar-text-active: #ffffff;
  --sidebar-hover: rgba(255, 255, 255, 0.08);
  --sidebar-active: rgba(197, 165, 90, 0.15);
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 70px;

  /* Topbar */
  --topbar-bg: #ffffff;
  --topbar-height: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(197, 165, 90, 0.15);

  /* Border Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
  --transition-slow: 0.35s ease;

  /* Font */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Status Colors */
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.12);
  --success-dark: #059669;
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.12);
  --warning-dark: #d97706;
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.12);
  --danger-dark: #dc2626;
  --info: #3b82f6;
  --info-light: rgba(59, 130, 246, 0.12);
  --info-dark: #2563eb;

  /* Chart Colors */
  --chart-1: #1a237e;
  --chart-2: #c5a55a;
  --chart-3: #10b981;
  --chart-4: #f59e0b;
  --chart-5: #ef4444;
  --chart-6: #8b5cf6;
}

/* Dark Mode Variables */
.dark-mode,
[data-theme="dark"] {
  --primary: #3f51b5;
  --primary-dark: #1a237e;
  --primary-light: #5c6bc0;

  --bg: #0f1118;
  --bg-card: #1a1d2e;
  --bg-card-hover: #222639;
  --bg-input: #1a1d2e;
  --bg-disabled: #2a2d3e;

  --text: #e4e6ef;
  --text-light: #a2a6b9;
  --text-muted: #6b7094;
  --text-inverse: #0f1118;

  --border: #2a2d3e;
  --border-light: #1e2132;

  --sidebar-bg: linear-gradient(180deg, #0d1117 0%, #0a0d12 100%);
  --sidebar-text: #8b8fa6;
  --sidebar-text-active: #ffffff;
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-active: rgba(197, 165, 90, 0.12);

  --topbar-bg: #1a1d2e;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
}

/* ------------------------------------------------------------
   2. Base & Reset
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

.text-muted {
  color: var(--text-muted) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-info {
  color: var(--info) !important;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.fw-light { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

.fs-sm { font-size: 0.75rem; }
.fs-base { font-size: 0.9375rem; }
.fs-lg { font-size: 1.125rem; }
.fs-xl { font-size: 1.5rem; }
.fs-2xl { font-size: 2rem; }
.fs-3xl { font-size: 2.5rem; }

/* ------------------------------------------------------------
   4. Wrapper & Sidebar Layout
   ------------------------------------------------------------ */
.wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: width var(--transition-slow), transform var(--transition-slow);
  overflow: hidden;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  min-height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  white-space: nowrap;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d1557;
  font-size: 1.125rem;
  font-weight: 800;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sidebar-text-active);
  letter-spacing: 0.3px;
}

.brand-text span {
  color: var(--accent);
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--sidebar-text-active);
}

/* Sidebar Body (Scrollable Nav) */
.sidebar-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0;
}

.sidebar-body::-webkit-scrollbar {
  width: 3px;
}

.sidebar-body::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Sidebar Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0.75rem;
}

.nav-section {
  padding: 1rem 1rem 0.375rem 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar.collapsed .nav-section {
  text-align: center;
  padding: 1rem 0 0.375rem 0;
  font-size: 0;
}

.sidebar.collapsed .nav-section::first-letter {
  font-size: 0.65rem;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-link:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
}

.nav-link.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-active);
  border-left: 3px solid var(--accent);
}

.nav-link .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.nav-link .nav-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link .nav-badge {
  margin-left: auto;
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  background: var(--accent);
  color: #0d1557;
  font-weight: 600;
  flex-shrink: 0;
}

.nav-link .nav-arrow {
  margin-left: auto;
  font-size: 0.625rem;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.nav-link .nav-arrow.open {
  transform: rotate(90deg);
}

/* Sidebar collapsed overrides */
.sidebar.collapsed .nav-link {
  padding: 0.625rem;
  justify-content: center;
  border-left: none;
}

.sidebar.collapsed .nav-link .nav-text,
.sidebar.collapsed .nav-link .nav-badge,
.sidebar.collapsed .nav-link .nav-arrow {
  display: none;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 1rem 0.5rem;
}

.sidebar.collapsed .brand-text {
  display: none;
}

.sidebar.collapsed .sidebar-toggle {
  display: none;
}

.sidebar.collapsed .sidebar-brand {
  justify-content: center;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.nav-link-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-link-footer:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
}

.sidebar.collapsed .nav-link-footer {
  justify-content: center;
  padding: 0.625rem;
}

.sidebar.collapsed .nav-link-footer .nav-text {
  display: none;
}

/* ------------------------------------------------------------
   5. Main Content Area
   ------------------------------------------------------------ */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition-slow);
}

.main-content.expanded {
  margin-left: var(--sidebar-collapsed-width);
}

/* ------------------------------------------------------------
   6. Topbar / Header
   ------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: var(--topbar-height);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.topbar-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--text-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.topbar-btn:hover {
  background: var(--border-light);
  color: var(--text);
}

.topbar-btn .notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: var(--radius-full);
  border: 2px solid var(--topbar-bg);
}

/* Page Title in Topbar */
.page-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.page-title small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* User Avatar */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.user-avatar:hover {
  border-color: var(--accent);
}

.avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
}

/* Topbar Search */
.topbar-search {
  position: relative;
  flex: 0 1 320px;
}

.topbar-search .form-control {
  padding-left: 2.5rem;
  height: 38px;
  font-size: 0.8125rem;
}

.topbar-search .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.875rem;
  pointer-events: none;
}

/* ------------------------------------------------------------
   7. Content Area
   ------------------------------------------------------------ */
.content {
  flex: 1;
  padding: 1.5rem;
  min-height: calc(100vh - var(--topbar-height));
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.content-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.content-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.125rem;
}

/* ------------------------------------------------------------
   8. Cards
   ------------------------------------------------------------ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: transparent;
}

.card-header:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card-header h3,
.card-header h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.card-header .card-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  background: transparent;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Stat Cards */
.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-icon.primary {
  background: rgba(26, 35, 126, 0.1);
  color: var(--primary);
}

.stat-icon.accent {
  background: rgba(197, 165, 90, 0.12);
  color: var(--accent);
}

.stat-icon.success {
  background: var(--success-light);
  color: var(--success);
}

.stat-icon.warning {
  background: var(--warning-light);
  color: var(--warning);
}

.stat-icon.danger {
  background: var(--danger-light);
  color: var(--danger);
}

.stat-icon.info {
  background: var(--info-light);
  color: var(--info);
}

.stat-info {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.125rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.375rem;
}

.stat-change.up {
  color: var(--success);
}

.stat-change.down {
  color: var(--danger);
}

/* Card with full image */
.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Card horizontal (for vehicle listings) */
.card-horizontal {
  display: flex;
  flex-direction: row;
}

.card-horizontal .card-img-left {
  width: 200px;
  min-height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .card-horizontal {
    flex-direction: column;
  }

  .card-horizontal .card-img-left {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
}

/* Card hover lift effect */
.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ------------------------------------------------------------
   9. Badges
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.625em;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 6px;
  border: none;
  gap: 0.25rem;
}

.badge-pill {
  border-radius: 50px;
}

.badge-sm {
  padding: 0.15em 0.45em;
  font-size: 0.6875rem;
}

.badge-lg {
  padding: 0.4em 0.85em;
  font-size: 0.8125rem;
}

.badge-primary {
  background: rgba(26, 35, 126, 0.1);
  color: var(--primary);
}

.dark-mode .badge-primary {
  background: rgba(63, 81, 181, 0.2);
  color: #7986cb;
}

.badge-accent {
  background: rgba(197, 165, 90, 0.12);
  color: var(--accent-dark);
}

.dark-mode .badge-accent {
  background: rgba(197, 165, 90, 0.15);
  color: var(--accent-light);
}

.badge-success {
  background: var(--success-light);
  color: var(--success-dark);
}

.dark-mode .badge-success {
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning-dark);
}

.dark-mode .badge-warning {
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger-dark);
}

.dark-mode .badge-danger {
  color: #f87171;
}

.badge-info {
  background: var(--info-light);
  color: var(--info-dark);
}

.dark-mode .badge-info {
  color: var(--info);
}

.badge-dark {
  background: #1e293b;
  color: #ffffff;
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-light);
}

/* Status dot badge */
.badge-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* ------------------------------------------------------------
   10. Tables
   ------------------------------------------------------------ */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table thead {
  background: var(--border-light);
}

.table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}

.table tbody tr {
  transition: background var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--bg);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table-striped tbody tr:nth-child(even) {
  background: var(--bg);
}

.table-bordered {
  border: 1px solid var(--border);
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--border);
}

.table-sm th,
.table-sm td {
  padding: 0.5rem 0.75rem;
}

.table .actions-cell {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.table .actions-cell .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Table avatar */
.table-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.table-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ------------------------------------------------------------
   11. Forms & Inputs
   ------------------------------------------------------------ */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-label .required {
  color: var(--danger);
  margin-left: 0.125rem;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-family: var(--font-family);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-control:disabled,
.form-select:disabled {
  background: var(--bg-disabled);
  cursor: not-allowed;
  opacity: 0.7;
}

.form-control-sm {
  padding: 0.3125rem 0.625rem;
  font-size: 0.8125rem;
}

.form-control-lg {
  padding: 0.6875rem 1rem;
  font-size: 1rem;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a9aa8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.25rem;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Form validation */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.invalid-feedback {
  display: block;
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 0.25rem;
}

.valid-feedback {
  display: block;
  font-size: 0.75rem;
  color: var(--success);
  margin-top: 0.25rem;
}

/* Input group */
.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group .form-control {
  flex: 1;
  min-width: 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-light);
  background: var(--border-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}

.input-group .form-control:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1.5px;
}

.input-group .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .input-group-text:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .input-group-text:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1.5px;
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.form-check-input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.form-check-label {
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

/* Toggle / Switch */
.form-switch {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
}

.form-switch-input {
  position: relative;
  width: 40px;
  height: 22px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.form-switch-input:checked {
  background: var(--primary);
}

.form-switch-input::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-switch-input:checked::before {
  transform: translateX(18px);
}

/* ------------------------------------------------------------
   12. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-family);
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #1a1a1a;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.btn-secondary {
  background: var(--border-light);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text);
}

.btn-success {
  background: var(--success);
  color: #ffffff;
  border-color: var(--success);
}

.btn-success:hover {
  background: var(--success-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning {
  background: var(--warning);
  color: #1a1a1a;
  border-color: var(--warning);
}

.btn-warning:hover {
  background: var(--warning-dark);
  color: #1a1a1a;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-info {
  background: var(--info);
  color: #ffffff;
  border-color: var(--info);
}

.btn-info:hover {
  background: var(--info-dark);
  color: #ffffff;
}

.btn-dark {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
}

.btn-dark:hover {
  background: #0f172a;
  color: #ffffff;
}

.btn-light {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

.btn-light:hover {
  background: var(--border-light);
  color: var(--text);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-outline-accent {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--accent);
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: #1a1a1a;
}

.btn-outline-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}

.btn-outline-danger:hover {
  background: var(--danger);
  color: #ffffff;
}

/* Button Sizes */
.btn-sm {
  padding: 0.3125rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.6875rem 1.5rem;
  font-size: 1rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius);
}

.btn-icon.btn-sm {
  width: 30px;
  height: 30px;
}

.btn-icon.btn-lg {
  width: 44px;
  height: 44px;
}

/* Button group */
.btn-group {
  display: inline-flex;
  align-items: center;
}

.btn-group .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1.5px;
}

.btn-group .btn:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* ------------------------------------------------------------
   13. Charts & Progress
   ------------------------------------------------------------ */
.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
}

.chart-container-sm {
  height: 200px;
}

.chart-container-lg {
  height: 400px;
}

/* Progress Bars */
.progress {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-sm {
  height: 4px;
}

.progress-lg {
  height: 12px;
  border-radius: 6px;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  background: var(--primary);
  transition: width 0.6s ease;
  position: relative;
}

.progress-bar.accent {
  background: var(--accent);
}

.progress-bar.success {
  background: var(--success);
}

.progress-bar.warning {
  background: var(--warning);
}

.progress-bar.danger {
  background: var(--danger);
}

.progress-bar.info {
  background: var(--info);
}

.progress-bar-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  from {
    background-position: 1rem 0;
  }
  to {
    background-position: 0 0;
  }
}

/* ------------------------------------------------------------
   14. Modals
   ------------------------------------------------------------ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1055;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 2rem);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition);
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-dialog-sm {
  max-width: 400px;
}

.modal-dialog-lg {
  max-width: 700px;
}

.modal-dialog-xl {
  max-width: 900px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h3,
.modal-header h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--border-light);
  color: var(--text);
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   15. Alerts
   ------------------------------------------------------------ */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.alert-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.0625rem;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.alert-dismiss {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.6;
  font-size: 1.125rem;
  padding: 0;
  flex-shrink: 0;
}

.alert-dismiss:hover {
  opacity: 1;
}

.alert-primary {
  background: rgba(26, 35, 126, 0.08);
  border-color: rgba(26, 35, 126, 0.15);
  color: var(--primary);
}

.alert-accent {
  background: rgba(197, 165, 90, 0.1);
  border-color: rgba(197, 165, 90, 0.2);
  color: var(--accent-dark);
}

.alert-success {
  background: var(--success-light);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success-dark);
}

.alert-warning {
  background: var(--warning-light);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--warning-dark);
}

.alert-danger {
  background: var(--danger-light);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--danger-dark);
}

.alert-info {
  background: var(--info-light);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--info-dark);
}

/* ------------------------------------------------------------
   16. Notifications Dropdown
   ------------------------------------------------------------ */
.notification-dropdown {
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.notification-dropdown-header {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-dropdown-header h6 {
  font-size: 0.875rem;
  margin: 0;
}

.notification-dropdown-body {
  max-height: 320px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.notification-item:hover {
  background: var(--bg);
}

.notification-item.unread {
  background: var(--border-light);
}

.notification-item.unread .notification-text {
  font-weight: 600;
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.notification-icon.success {
  background: var(--success-light);
  color: var(--success);
}

.notification-icon.warning {
  background: var(--warning-light);
  color: var(--warning);
}

.notification-icon.danger {
  background: var(--danger-light);
  color: var(--danger);
}

.notification-icon.info {
  background: var(--info-light);
  color: var(--info);
}

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

.notification-text {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-time {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.notification-dropdown-footer {
  padding: 0.625rem 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.notification-dropdown-footer a {
  font-size: 0.8125rem;
  color: var(--primary);
}

/* ------------------------------------------------------------
   17. Dropdown Menu
   ------------------------------------------------------------ */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.375rem 0;
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all var(--transition-fast);
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--text);
  transition: background var(--transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-family);
}

.dropdown-item:hover {
  background: var(--border-light);
  color: var(--text);
}

.dropdown-item .dropdown-icon {
  font-size: 0.9375rem;
  color: var(--text-muted);
  width: 18px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.375rem 0;
}

/* ------------------------------------------------------------
   18. Footer
   ------------------------------------------------------------ */
.footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-card);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--primary);
}

/* ------------------------------------------------------------
   19. Utilities & Helpers
   ------------------------------------------------------------ */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-none { display: none; }

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.align-self-center { align-self: center; }

.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-circle { border-radius: var(--radius-full); }

.border { border: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.cursor-pointer { cursor: pointer; }
.user-select-none { user-select: none; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* ------------------------------------------------------------
   20. Page Specific: Dashboard
   ------------------------------------------------------------ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.activity-timeline {
  position: relative;
  padding-left: 2rem;
}

.activity-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.375rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-card);
}

.timeline-item.success::before {
  background: var(--success);
}

.timeline-item.warning::before {
  background: var(--warning);
}

.timeline-item.danger::before {
  background: var(--danger);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-time {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.timeline-text {
  font-size: 0.8125rem;
  color: var(--text);
}

/* ------------------------------------------------------------
   21. Page Specific: Vehicle Cards
   ------------------------------------------------------------ */
.vehicle-card {
  position: relative;
  overflow: hidden;
}

.vehicle-card .vehicle-image {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.vehicle-card .vehicle-status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.vehicle-card .vehicle-info {
  padding: 1rem;
}

.vehicle-card .vehicle-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.vehicle-card .vehicle-category {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.vehicle-card .vehicle-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.vehicle-card .vehicle-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.vehicle-card .vehicle-features {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-light);
  margin-top: 0.75rem;
}

.vehicle-card .vehicle-feature {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ------------------------------------------------------------
   22. Page Specific: Auth Pages
   ------------------------------------------------------------ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.auth-card-header {
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}

.auth-card-header .auth-logo {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0d1557;
  margin-bottom: 1rem;
}

.auth-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.auth-card-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-card-body {
  padding: 0 2rem 2rem;
}

.auth-card-footer {
  padding: 1rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-card-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* ------------------------------------------------------------
   23. Print Styles (Contracts & Invoices)
   ------------------------------------------------------------ */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .sidebar,
  .topbar,
  .footer,
  .btn,
  .no-print {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .content {
    padding: 0 !important;
    min-height: auto !important;
  }

  .card {
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }

  .card-header {
    border-bottom: 2px solid #000 !important;
  }

  .table td,
  .table th {
    border: 1px solid #ddd !important;
  }

  .badge {
    border: 1px solid #000 !important;
    padding: 0.125rem 0.375rem !important;
  }

  a[href]::after {
    content: none !important;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
  }

  .table {
    page-break-inside: auto;
  }

  .table tr {
    page-break-inside: avoid;
  }

  @page {
    margin: 1.5cm;
  }

  .print-only {
    display: block !important;
  }
}

.print-only {
  display: none;
}

/* ------------------------------------------------------------
   24. Animations
   ------------------------------------------------------------ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.4s ease forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.4s ease forwards;
}

.animate-slide-in-up {
  animation: slideInUp 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Staggered animation delays */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--border-light) 25%,
    var(--bg-card-hover) 50%,
    var(--border-light) 75%
  );
  background-size: 1000px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  color: transparent !important;
  user-select: none;
  pointer-events: none;
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
  width: 100%;
}

.skeleton-text-sm {
  width: 60%;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}

.skeleton-thumbnail {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------
   25. Responsive Breakpoints
   ------------------------------------------------------------ */

/* Large screens (up to 1200px) */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Medium screens (up to 992px) */
@media (max-width: 992px) {
  .topbar-search {
    flex: 0 1 240px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small screens (up to 768px) */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width) !important;
  }

  .sidebar.mobile-show {
    transform: translateX(0);
  }

  .sidebar.collapsed {
    width: var(--sidebar-width) !important;
  }

  .main-content {
    margin-left: 0 !important;
  }

  .topbar {
    padding: 0 1rem;
  }

  .topbar-search {
    display: none;
  }

  .content {
    padding: 1rem;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.375rem;
  }

  .notification-dropdown {
    width: 300px;
  }

  .card-body {
    padding: 1rem;
  }

  .modal-dialog {
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
  }

  .auth-wrapper {
    padding: 1rem;
  }

  .auth-card {
    max-width: 100%;
  }

  .auth-card-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .auth-card-body {
    padding: 0 1.5rem 1.5rem;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

/* Extra small screens (up to 576px) */
@media (max-width: 576px) {
  .topbar-right .topbar-btn:not(.user-menu) {
    display: none;
  }

  .content {
    padding: 0.75rem;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-container {
    margin: 0 -0.75rem;
    border-radius: 0;
  }

  .chart-container {
    height: 240px;
  }

  .notification-dropdown {
    width: calc(100vw - 2rem);
    right: -4rem;
  }

  .dashboard-grid {
    gap: 0.75rem;
  }

  .modal-dialog {
    border-radius: var(--radius);
  }

  .vehicle-card .vehicle-image {
    height: 140px;
  }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1035;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 769px) {
  .sidebar-overlay {
    display: none;
  }
}

/* ------------------------------------------------------------
   26. Dark Mode Overrides
   ------------------------------------------------------------ */
.dark-mode .table thead {
  background: rgba(255, 255, 255, 0.03);
}

.dark-mode .table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.dark-mode .table-striped tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.dark-mode .form-control,
.dark-mode .form-select {
  border-color: var(--border);
}

.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.15);
}

.dark-mode .btn-light {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.dark-mode .btn-light:hover {
  background: var(--bg-card-hover);
}

.dark-mode .btn-secondary {
  background: var(--bg-card-hover);
  border-color: var(--border);
  color: var(--text);
}

.dark-mode .btn-secondary:hover {
  background: var(--border);
}

.dark-mode .auth-wrapper {
  background: linear-gradient(135deg, #0a0d12 0%, #0f1118 50%, #1a1d2e 100%);
}

.dark-mode .auth-card-footer {
  background: var(--bg-card);
  border-top-color: var(--border);
}

.dark-mode .topbar-search .form-control {
  background: var(--bg-input);
  border-color: var(--border);
}

.dark-mode .stat-icon.primary {
  background: rgba(63, 81, 181, 0.15);
}

.dark-mode .chart-container canvas {
  filter: brightness(0.9);
}

.dark-mode .vehicle-card .vehicle-price {
  color: var(--accent-light);
}

.dark-mode .topbar-btn .notification-dot {
  border-color: var(--topbar-bg);
}

/* Dark mode scrollbar */
.dark-mode ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.dark-mode ::-webkit-scrollbar-track {
  background: var(--bg);
}

.dark-mode ::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ------------------------------------------------------------
   27. Theme Toggle Button
   ------------------------------------------------------------ */
.theme-toggle {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--text-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--border-light);
  color: var(--text);
}

/* ------------------------------------------------------------
   28. Extra: Image Upload / File Input
   ------------------------------------------------------------ */
.file-upload {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.file-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: var(--bg);
  text-align: center;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.03);
}

.file-upload-icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.file-upload-text {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.file-upload-text strong {
  color: var(--primary);
}

.file-upload-hint {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ------------------------------------------------------------
   29. Extra: Data Tables (Advanced)
   ------------------------------------------------------------ */
.data-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.data-table-toolbar .search-box {
  flex: 0 1 280px;
}

.data-table-toolbar .table-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.data-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.data-table-footer .pagination {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination .page-item {
  list-style: none;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination .page-link:hover {
  background: var(--border-light);
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  color: #ffffff;
}

.pagination .page-item.disabled .page-link {
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0.5;
}

/* ------------------------------------------------------------
   30. Extra: Kanban Board (if needed)
   ------------------------------------------------------------ */
.kanban-board {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.kanban-column {
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border);
}

.kanban-column-body {
  padding: 0.5rem 0.25rem;
  min-height: 200px;
}

.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: all var(--transition-fast);
}

.kanban-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.kanban-card-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------
   31. Extra: Toast Notifications
   ------------------------------------------------------------ */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.3s ease forwards;
}

.toast-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.0625rem;
}

.toast-icon.success { color: var(--success); }
.toast-icon.warning { color: var(--warning); }
.toast-icon.danger { color: var(--danger); }
.toast-icon.info { color: var(--info); }

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

.toast-title {
  font-size: 0.8125rem;
  font-weight: 600;
}

.toast-message {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   32. Extra: Tooltips
   ------------------------------------------------------------ */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #ffffff;
  background: #1e293b;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 1100;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Dark mode tooltip */
.dark-mode .tooltip::after {
  background: #e4e6ef;
  color: #0f1118;
}

/* ------------------------------------------------------------
   33. Extra: Status Indicators
   ------------------------------------------------------------ */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.status-indicator::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.status-indicator.active::before,
.status-indicator.available::before,
.status-indicator.completed::before { background: var(--success); }

.status-indicator.pending::before,
.status-indicator.booked::before { background: var(--warning); }

.status-indicator.inactive::before,
.status-indicator.maintenance::before,
.status-indicator.cancelled::before { background: var(--danger); }

.status-indicator.draft::before,
.status-indicator.scheduled::before { background: var(--info); }

/* ------------------------------------------------------------
   34. Extra: Empty States
   ------------------------------------------------------------ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.empty-state-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 1.25rem;
}

/* ------------------------------------------------------------
   35. Extra: Pricing / Rate Cards
   ------------------------------------------------------------ */
.pricing-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured .pricing-badge {
  position: absolute;
  top: 0.75rem;
  right: -2rem;
  background: var(--accent);
  color: #1a1a1a;
  padding: 0.25rem 2.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  transform: rotate(45deg);
}

.pricing-card .pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.pricing-card .pricing-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .pricing-period {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pricing-card .pricing-features {
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-card .pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border-light);
}

.pricing-card .pricing-feature:last-child {
  border-bottom: none;
}

.pricing-card .pricing-feature .check {
  color: var(--success);
}

/* ------------------------------------------------------------
   36. Extra: Scrollbar Styling (Global)
   ------------------------------------------------------------ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ------------------------------------------------------------
   37. Extra: Loading Spinner
   ------------------------------------------------------------ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-sm {
  width: 14px;
  height: 14px;
  border-width: 1.5px;
}

.spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.spinner-accent {
  border-top-color: var(--accent);
}

.spinner-light {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
}

/* Full-page loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------------------
   38. Extra: Sub Navigation / Tabs
   ------------------------------------------------------------ */
.nav-tabs {
  display: flex;
  gap: 0.125rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.nav-tabs .nav-tab {
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-family);
}

.nav-tabs .nav-tab:hover {
  color: var(--text);
  border-bottom-color: var(--border);
}

.nav-tabs .nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.dark-mode .nav-tabs .nav-tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

/* ------------------------------------------------------------
   39. Extra: Steps / Stepper
   ------------------------------------------------------------ */
.stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 2rem;
  counter-reset: step;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(-50% + 32px);
  right: calc(50% + 32px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step:first-child::before {
  display: none;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 auto 0.5rem;
  position: relative;
  z-index: 1;
  transition: all var(--transition-fast);
}

.step.active .step-number {
  background: var(--primary);
  color: #ffffff;
}

.step.completed .step-number {
  background: var(--success);
  color: #ffffff;
}

.step.completed::before {
  background: var(--success);
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.step.active .step-label {
  color: var(--text);
  font-weight: 600;
}

/* ------------------------------------------------------------
   40. Extra: Detail/Info List (for contracts)
   ------------------------------------------------------------ */
.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

@media (max-width: 576px) {
  .info-list {
    grid-template-columns: 1fr;
  }
}

.info-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.info-list-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.info-list-value {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

:root {
    --bg-main: #0f1220;
    --bg-sidebar: #0b0f17;
    --bg-card: #191d2f;
    --bg-card-soft: #20253a;
    --primary: #4f63ff;
    --gold: #f5c542;
    --text-main: #f4f6ff;
    --text-muted: #9ca3b8;
    --border: rgba(255,255,255,0.08);
}

body {
    background: var(--bg-main) !important;
    color: var(--text-main) !important;
}

.sidebar {
    background: linear-gradient(180deg, #080b12, #111827) !important;
    border-right: 1px solid var(--border);
}

.sidebar-brand,
.brand-name,
.brand-sub {
    color: var(--gold) !important;
}

.nav-link {
    color: var(--text-muted) !important;
    border-radius: 12px;
    margin: 4px 10px;
    transition: 0.25s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(245,197,66,0.12) !important;
    color: #fff !important;
    border-left: 3px solid var(--gold);
}

.nav-section {
    color: #6b7280 !important;
    letter-spacing: 2px;
    font-size: 11px;
    margin: 22px 18px 8px;
}

.topbar {
    background: #191d2f !important;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.content {
    background: #0f1220 !important;
    padding: 28px !important;
}

.card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 18px !important;
    color: var(--text-main) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--text-main) !important;
}

.form-control,
.form-select,
.select2-selection {
    background: #121625 !important;
    border: 1px solid #2d3348 !important;
    color: #fff !important;
    border-radius: 10px !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(79,99,255,0.25) !important;
}

label,
.form-label {
    color: #d7dcf0 !important;
    font-weight: 600;
}

.table {
    color: var(--text-main) !important;
}

.table thead th {
    background: #f8f9fc !important;
    color: #6b7280 !important;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.table tbody tr {
    background: #fff !important;
    color: #111827 !important;
}

.btn-primary {
    background: linear-gradient(135deg, #4f63ff, #2638d8) !important;
    border: none !important;
    border-radius: 10px;
}

.btn-outline-danger {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.btn-outline-danger:hover {
    background: #ef4444 !important;
    color: #fff !important;
}

.stat-card {
    border-radius: 16px !important;
    overflow: hidden;
}

.bg-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

.bg-success {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

.bg-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.select2-dropdown {
    background: #fff !important;
    color: #111827 !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.select2-results__option--highlighted {
    background: #4f63ff !important;
    color: #fff !important;
}

body,
.wrapper,
.main-content,
.content {
    background: #0f1220 !important;
}

body.dark-mode,
body.dark-mode .wrapper,
body.dark-mode .main-content,
body.dark-mode .content {
    background: #0f1220 !important;
}

.topbar,
.sidebar,
.card,
.modal-content {
    background-color: #191d2f !important;
    color: #f4f6ff !important;
}

.form-control,
.form-select,
.select2-selection {
    background-color: #111827 !important;
    color: #fff !important;
    border-color: #30364d !important;
}

.dropdown-menu {
    background: #191d2f !important;
    border: 1px solid #30364d !important;
}

.dropdown-item {
    color: #f4f6ff !important;
}

.dropdown-item:hover {
    background: #252b44 !important;
}
/* ------------------------------------------------------------
   END OF STYLESHEET
   ------------------------------------------------------------ */
   
