:root {
  --accent: #4f46e5;
  --radius-lg: 16px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,.08);
}

.app-body {
  min-height: 100vh;
}

.app-mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.app-top-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 2000;
  transition: width .25s ease;
  opacity: 0;
}
body.is-loading .app-top-progress {
  width: 65%;
  opacity: 1;
}
body.is-loading.is-loading-done .app-top-progress {
  width: 100%;
  opacity: 0;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 280px;
  border-right: 1px solid rgba(0,0,0,.08);
  background: var(--bs-body-bg);
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
[data-bs-theme="dark"] .app-sidebar {
  border-right-color: rgba(255,255,255,.08);
}

.app-sidebar-head {
  padding: 18px 18px 10px 18px;
}
.app-sidebar-body {
  padding: 6px 10px;
  overflow: auto;
  flex: 1;
}
.app-sidebar-foot {
  padding: 12px;
  border-top: 1px solid rgba(0,0,0,.06);
}
[data-bs-theme="dark"] .app-sidebar-foot {
  border-top-color: rgba(255,255,255,.08);
}

.app-nav .nav-link {
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bs-body-color);
}
.app-nav .nav-link i {
  width: 18px;
  text-align: center;
  opacity: .85;
}
.app-nav .nav-link:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.app-nav .nav-link.active {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--bs-body-color);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.app-main {
  flex: 1;
  min-width: 0;
  background: var(--bs-tertiary-bg);
}
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
[data-bs-theme="dark"] .app-topbar {
  border-bottom-color: rgba(255,255,255,.08);
}
.app-topbar-inner {
  backdrop-filter: blur(8px);
}

.app-content .app-page {
  animation: appFadeIn .18s ease-out;
}

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

.app-card {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
[data-bs-theme="dark"] .app-card {
  border-color: rgba(255,255,255,.10);
  box-shadow: none;
}

.app-accent-swatch {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: var(--swatch);
}
[data-bs-theme="dark"] .app-accent-swatch {
  border-color: rgba(255,255,255,.18);
}

.btn-accent {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: color-mix(in srgb, var(--accent) 88%, black);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--accent) 88%, black);
  --bs-btn-color: #fff;
}
a {
  color: color-mix(in srgb, var(--accent) 90%, var(--bs-body-color));
}
a:hover {
  color: var(--accent);
}

.app-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(0,0,0,.06);
}
[data-bs-theme="dark"] .app-offcanvas .offcanvas-header {
  border-bottom-color: rgba(255,255,255,.08);
}

/* Public inventory */
.inventory-card {
  transition: transform .12s ease, box-shadow .12s ease;
}
.inventory-card:hover {
  transform: translateY(-1px);
}
.inventory-photo {
  filter: saturate(0.95);
}

.inventory-filters {
  position: sticky;
  top: 84px;
}

@media (max-width: 991.98px) {
  .inventory-filters {
    position: static;
  }
}

.inventory-card .font-monospace {
  font-size: .85em;
}

/* Admin vehicle photo thumbnails */
.admin-photo-thumb {
  height: 64px;
  overflow: hidden;
  border-radius: 10px;
}

/* Public vehicle thumbstrip */
.vehicle-thumbstrip {
  gap: .5rem;
}
.vehicle-thumb {
  width: 86px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}
[data-bs-theme="dark"] .vehicle-thumb {
  border-color: rgba(255,255,255,.12);
}
.vehicle-thumb.is-active {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}


/* Header style variants (tenant_themes.header_style) */
.header-style-logo_center .site-header .brand-wrap{justify-content:center;}
.header-style-logo_center .site-header .nav-wrap{justify-content:center;}
.header-style-logo_left .site-header .brand-wrap{justify-content:flex-start;}
