/*
 * GarageVault POC skin — dark bronze cockpit
 *
 * Replaces the blue accent from the early prototype with a restrained
 * champagne-gold palette from "Logo by Gemini.png".
 * State/severity colors remain distinct for operational clarity.
 */
:root {
  --gv-ink: #17120f;
  --gv-dark: #211912;
  --gv-panel: #2d241b;
  --gv-panel-deep: #241d17;
  --gv-border: #55442f;
  --gv-gold: #c9a45e;
  --gv-gold-light: #e8d19d;
  --gv-copy: #efe6d5;
  --gv-muted: #b0a18c;
}
body {
  background: var(--gv-ink) !important;
  color: var(--gv-copy);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
::-webkit-scrollbar-track { background: #282018; }
::-webkit-scrollbar-thumb { background: #685339; }

#gv-topnav {
  height: 52px !important;
  background: linear-gradient(90deg,#2d2218,#1e1814) !important;
  border-bottom: 1px solid #735a38 !important;
  padding-left: 21px !important;
  box-shadow: 0 6px 30px #0004;
}
#gv-topnav > a:first-child { margin-right: 19px !important; }
#gv-topnav > a:first-child > div {
  height: 37px !important;
  width: 174px !important;
  border-radius: 0 !important;
  background: url("./garagevault-brandmark.svg") left center / contain no-repeat !important;
}
#gv-topnav > a:first-child > div svg,
#gv-topnav > a:first-child > span { display: none !important; }
#gv-topnav > div[style*="background:#1f2937"] {
  background: #735b3c !important;
  height: 24px !important;
}
#gv-topnav .gv-nav-link {
  height: 52px !important;
  color: #baa98f !important;
  border-bottom-width: 2px !important;
  font-size: 11px !important;
  letter-spacing: .045em;
}
#gv-topnav .gv-nav-link:hover { color: #f5dfaa !important; }
#gv-topnav .gv-nav-active {
  color: #f8e6c4 !important;
  border-bottom-color: #d3aa64 !important;
}
#gv-topnav > span:last-child {
  color: #ad956d !important;
  letter-spacing: .16em !important;
}
body { padding-top: 52px !important; }
body > .h-screen { height: calc(100vh - 52px) !important; }

aside {
  background: linear-gradient(160deg,#2d2319,#1f1914) !important;
  border-right: 1px solid #58442d !important;
}
aside > div:first-child { border-color: #5d4831 !important; }
aside > div:first-child .w-8 {
  background: linear-gradient(135deg,#b08a4d,#715026) !important;
  box-shadow: inset 0 1px 0 #f8e2af88;
}
aside > div:first-child .w-8 svg { stroke: #fdf4d9; }
aside > div:first-child [style*="color:#fff"] { color: #f4e7c9 !important; }
aside > div:first-child [style*="color:#6b7280"] { color: #b59b70 !important; }
.nav-item {
  border-radius: 3px;
  color: #baab95;
  font-size: 13px;
  border: 1px solid transparent;
}
.nav-item svg { color: #ad9061; }
.nav-item:hover {
  color: #fff4dc;
  background: #4a3724;
  border-color: #624b2f;
}
.nav-item.active {
  color: #fff2d5;
  background: linear-gradient(105deg,#70512c,#48331f);
  border-color: #ae884c;
  box-shadow: inset 3px 0 0 #e0bd78;
}
.nav-item.active svg { color: #ead09a; }

main {
  color: #efe3d1;
  background:
    radial-gradient(ellipse 35% 33% at 85% 1%,#513b261b,transparent),
    #18140f !important;
}
main .page {
  scrollbar-color: #71583c #261e16;
}
.card,.customer-card {
  background: linear-gradient(150deg,#30271e,#261f19);
  border: 1px solid #59472f;
  border-radius: 5px;
  box-shadow: 0 12px 34px #00000025;
}
.card [style*="color:#60a5fa"],
.card [style*="color:#93c5fd"] {
  color: #e3bd76 !important;
}
.btn-primary {
  background: linear-gradient(105deg,#c29b57,#987139);
  color: #20160b;
  border: 1px solid #d6b16e;
  border-radius: 3px;
  font-weight: 750;
  box-shadow: 0 7px 18px #0003;
}
.btn-primary:hover {
  background: linear-gradient(105deg,#d6b374,#ae8448);
}
.btn-secondary {
  background: #3b3023;
  color: #f2e2c3;
  border: 1px solid #715b3a;
  border-radius: 3px;
}
.btn-secondary:hover { background: #4d3c28; }
.input {
  background: #332920;
  border: 1px solid #715b40;
  color: #f3e9d8;
  border-radius: 3px;
}
.input:focus {
  border-color: #d9b473;
  box-shadow: 0 0 0 3px #b18b4840;
}
.input::placeholder { color: #b8a58a; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid #e4bd76;
  outline-offset: 3px;
}

.modal-overlay {
  background: rgba(12,9,6,.78);
  backdrop-filter: blur(7px);
}
.modal-box {
  background: #2a211a;
  border: 1px solid #9b7948;
  border-radius: 5px;
  box-shadow: 0 25px 90px #000b, 0 0 0 1px #d9b77822;
}
.modal-header { border-color: #6a5236; background: #2c231b; }
.modal-close { background: #453729; color: #d0bb9a; border-radius: 2px; }
.modal-close:hover { background: #684d2f; color: #fff0d5; }
.pin-key {
  background: #3f3427;
  border-color: #625039;
  color: #f6ebd7;
  border-radius: 3px;
}
.pin-key:hover { background: #655037; border-color: #af8b53; }
.pin-key:active { background: #8e6a39; }
.zone-row {
  background: #30271e;
  border-color: #57462f;
  border-radius: 3px;
}
.zone-row:hover { background: #3c3023; border-color: #af8b53; }
.zone-row.active-zone {
  background: #ad85452b;
  border-color: #bd975e;
}
.tyre-card {
  background: #312920;
  border-color: #5f4a32;
  border-radius: 4px;
}
.img-placeholder {
  background: #372b21;
  color: #bba681;
}
.img-scan-line { background: linear-gradient(90deg,transparent,#d1ab68,transparent); }
.progress-bar { background: #594831; }
.tooltip { background: #302519; border-color: #8d6d44; color: #f4e8cd; }
.step-line { background: #705637; }
.badge-demo {
  color: #f1d89e;
  background: #b58c4224;
  border-color: #bb96558c;
}
.stat-pill { background: #493925; color: #e0c497; }
.customer-vehicles { border-color: #59472f; }
.customer-header:hover { background: #94714214; }
.vehicle-row { border-color: #57432c; }

/* Keep safety signals red/amber/green: gold is branding, not a risk status. */
.sev-high,.sev-medium,.sev-low,.sev-ok { font-weight: 650; }
@media(max-width: 860px) {
  #gv-topnav {
    padding-left: 11px !important;
    padding-right: 10px !important;
    overflow-x: auto;
  }
  #gv-topnav > a:first-child > div { width: 132px !important; }
  #gv-topnav .gv-nav-link { padding: 0 8px !important; }
}
@media(prefers-reduced-motion:reduce) {
  .btn-primary,.btn-secondary,.nav-item { transition: none; }
}
