/* GoharWay — Tabler theme overrides (github.com/tabler/tabler) */
:root {
  --tblr-font-sans-serif: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --tblr-primary: #c9852c;
  --tblr-primary-rgb: 201, 133, 44;
  --tblr-primary-fg: #1a1205;
  --tblr-link-color: #1d4f91;
  --tblr-body-bg: #f4f6f9;
  --tblr-border-radius: 0.5rem;
  --gw-ok: #2fb344;
  --gw-warn: #f76707;
  --gw-danger: #d63939;
}

body {
  font-family: var(--tblr-font-sans-serif);
  letter-spacing: 0;
}

.form-check-input.gw-check,
.gw-check { width: 1rem; height: 1rem; }

.gw-brand-mark {
  font-weight: 800;
  font-size: 1.35rem;
  color: #f0b45a !important;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.gw-brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45) !important;
  margin-top: 0.15rem;
}

.navbar-vertical .navbar-brand {
  padding-top: 1.1rem;
  padding-bottom: 0.75rem;
}
.navbar-vertical[data-bs-theme="dark"] {
  --tblr-navbar-bg: #0f172a;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
}
.navbar-vertical .nav-link.active {
  background: rgba(201, 133, 44, 0.14);
  color: #fff !important;
  font-weight: 600;
}
.navbar-vertical .nav-link-icon {
  width: 1.5rem;
  opacity: 0.9;
}
.navbar-vertical .nav-link-icon .ti {
  font-size: 1.15rem;
}

.page-wrapper {
  background: var(--tblr-body-bg);
}

.btn-primary {
  --tblr-btn-color: var(--tblr-primary-fg);
  --tblr-btn-bg: var(--tblr-primary);
  --tblr-btn-border-color: var(--tblr-primary);
  --tblr-btn-hover-bg: #b57524;
  --tblr-btn-hover-border-color: #b57524;
  --tblr-btn-hover-color: var(--tblr-primary-fg);
  font-weight: 700;
}

.card {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.gw-kpi .card-body {
  padding: 1rem 1.1rem;
}
.gw-kpi .h1 {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
}
.gw-kpi .subheader {
  margin: 0;
  font-size: 0.78rem;
}
.gw-kpi-ok .h1 { color: var(--gw-ok); }
.gw-kpi-warn .h1 { color: var(--gw-warn); }
.gw-kpi-danger .h1 { color: var(--gw-danger); }

.gw-map {
  height: clamp(420px, 68vh, 820px);
  width: 100%;
  background: #d9e1ea;
  border-radius: var(--tblr-border-radius);
}
.gw-map-ops {
  height: 100%;
  min-height: 100%;
  border-radius: 0;
}
.gw-map-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  height: calc(100vh - 0px);
  min-height: 100%;
}
.page:has(.gw-map-layout) .page-wrapper {
  padding: 0;
  overflow: hidden;
}
.gw-fleet-panel {
  background: #fff;
  border-inline-start: 1px solid var(--tblr-border-color, #e6e7e9);
  overflow: auto;
  max-height: 100vh;
}
.gw-fleet-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
  cursor: pointer;
  transition: background 0.12s ease;
}
.gw-fleet-item:hover {
  background: #f8fafc;
}
.gw-fleet-item .meta {
  color: var(--tblr-secondary, #667382);
  font-size: 0.76rem;
}

.gw-veh-wrap { background: transparent !important; border: 0 !important; }
.gw-veh {
  width: 54px;
  height: 54px;
  position: relative;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}
.gw-veh-arrow {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--c, #1f6feb);
  transform: translateX(-50%) rotate(var(--rot, 0deg));
  transform-origin: 50% 22px;
}
.gw-veh-body {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -42%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c, #1f6feb);
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.gw-veh-label {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(15, 23, 36, 0.88);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gw-report-accent {
  border-inline-start: 3px solid var(--tblr-primary);
}

.page-login {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(201, 133, 44, 0.18), transparent 55%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 48%, #0b1220 100%);
}
.page-login .card {
  border: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.page-login .gw-login-brand {
  color: #f0b45a;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.page-login .gw-login-tag {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
}

@media (max-width: 991.98px) {
  .gw-map-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .gw-map-ops {
    height: 56vh;
    min-height: 320px;
  }
  .gw-fleet-panel {
    max-height: 44vh;
    border-inline-start: 0;
    border-top: 1px solid var(--tblr-border-color, #e6e7e9);
  }
}
