:root {
  --kg-primary: #0f766e;
  --kg-primary-2: #164e63;
  --kg-dark: #0f172a;
  --kg-accent: #f59e0b;
  --kg-soft: #f8fafc;
  --kg-border: #e2e8f0;
}
body {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: #0f172a;
}
.kg-navbar {
  background: linear-gradient(90deg, var(--kg-dark), var(--kg-primary-2));
}
.brand-badge {
  width: 2rem; height: 2rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14);
}
.hero {
  background: linear-gradient(135deg, var(--kg-primary) 0%, var(--kg-primary-2) 100%);
  color: #fff;
  padding: 4rem 0;
  border-radius: 1.75rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.card-soft, .metric-card, .panel-card {
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.95);
}
.metric-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #ecfeff; color: var(--kg-primary);
  font-size: 1.25rem;
}
.section-title { font-weight: 700; letter-spacing: -.02em; }
.table thead th { white-space: nowrap; font-size: .85rem; color: #475569; }
.table tbody tr { vertical-align: middle; }
.badge-status { border-radius: 999px; padding: .5rem .7rem; font-size: .75rem; }
.stat-number { font-size: 2rem; font-weight: 800; line-height: 1; }
.quick-link { text-decoration: none; color: inherit; display: block; }
.progress-thin { height: .55rem; border-radius: 999px; }
.form-control, .form-select, .btn, .dropdown-menu { border-radius: .95rem; }
.footer-area { background: rgba(255,255,255,.7); border-top: 1px solid rgba(148,163,184,.2); }
.info-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .8rem; border-radius: 999px; background: rgba(255,255,255,.13);
}
.auth-card { max-width: 760px; margin: auto; }
.hero-feature li { margin-bottom: .5rem; }
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.doc-card {
  border: 1px solid var(--kg-border);
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
}
.doc-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: .9rem;
  border: 1px solid var(--kg-border);
  background: #f8fafc;
}
.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.app-sidebar {
  position: sticky;
  top: 92px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}
.sidebar-title {
  padding: .25rem .25rem 1rem;
  border-bottom: 1px solid var(--kg-border);
  margin-bottom: .75rem;
}
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #0f172a;
  padding: .8rem .9rem;
  border-radius: 1rem;
  font-weight: 600;
}
.sidebar-nav .nav-link i {
  width: 1.1rem;
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: linear-gradient(90deg, #ecfeff, #eef2ff);
  color: var(--kg-primary-2);
}
.app-content { min-width: 0; }
.driver-sidebar .sidebar-nav .nav-link.active {
  background: linear-gradient(90deg, #fef3c7, #fff7ed);
  color: #9a3412;
}
.install-tip {
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.9);
}
.auto-refresh-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .7rem; border-radius: 999px; background: #ecfeff; color: #155e75;
  font-size: .85rem; font-weight: 600;
}
@media (max-width: 991.98px) {
  .admin-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: relative; top: 0; }
}
@media (max-width: 768px) {
  .hero { padding: 2.5rem 0; border-radius: 1.25rem; }
  .stat-number { font-size: 1.6rem; }
}

.install-fab { position: fixed; right: 16px; bottom: 18px; z-index: 1040; }
.map-card { border-radius: 1.25rem; overflow: hidden; border: 1px solid rgba(148,163,184,.18); background: #fff; }
.map-box { height: 420px; width: 100%; }
.chat-box { background: #fff; border-radius: 1.25rem; border: 1px solid rgba(148,163,184,.16); box-shadow: 0 12px 32px rgba(15, 23, 42, .08); }
.chat-messages { max-height: 420px; overflow-y: auto; padding: 1rem; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.chat-bubble { max-width: 82%; padding: .8rem 1rem; border-radius: 1rem; margin-bottom: .75rem; }
.chat-bubble.me { background: #0f766e; color: #fff; margin-left: auto; border-bottom-right-radius: .3rem; }
.chat-bubble.other { background: #e2e8f0; color: #0f172a; margin-right: auto; border-bottom-left-radius: .3rem; }
.chat-meta { font-size: .75rem; opacity: .8; margin-top: .3rem; }
.section-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; background: #ecfeff; color: #155e75; font-size: .85rem; font-weight: 700; }
.nearby-list { display:grid; gap:.75rem; }
.nearby-item { background:#fff; border:1px solid var(--kg-border); border-radius:1rem; padding:.85rem 1rem; }
