/* LineWise — Tabler overrides & app layout */

/* ── Layout ──────────────────────────────────────────────────────────────── */

.lw-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.lw-content {
  flex: 1;
}

/* ── Top navbar ──────────────────────────────────────────────────────────── */

.lw-topbar {
  background: var(--tblr-bg-surface);
  border-bottom: 1px solid var(--tblr-border-color);
  min-height: 56px;
  z-index: 1030;
}

.lw-topbar .navbar-brand {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

/* Tab links in navbar */
.lw-tabs {
  border-bottom: none;
  gap: 0;
}

.lw-tabs .nav-link {
  color: var(--tblr-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--tblr-border-radius);
  border: none;
  position: relative;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.lw-tabs .nav-link:hover {
  color: var(--tblr-body-color);
  background: var(--tblr-active-bg, rgba(0,0,0,.04));
}

[data-bs-theme="dark"] .lw-tabs .nav-link:hover {
  background: rgba(255,255,255,.07);
}

.lw-tabs .nav-link.active {
  color: var(--tblr-primary);
  background: transparent;
}

.lw-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--tblr-primary);
  border-radius: 2px 2px 0 0;
}

/* On mobile the active indicator doesn't make sense below tabs */
@media (max-width: 991.98px) {
  .lw-tabs .nav-link.active::after { display: none; }
  .lw-tabs .nav-link.active {
    background: var(--tblr-primary-lt);
  }
}

/* Profile toggle — remove default dropdown arrow */
.lw-profile-toggle::after { display: none; }

/* Nav avatar circle */
.lw-nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tblr-primary-lt);
  color: var(--tblr-primary);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lw-nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Utility bars ────────────────────────────────────────────────────────── */

.util-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--tblr-border-color);
  overflow: hidden;
}

.util-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--tblr-primary);
  transition: width 0.3s ease;
}

.util-bar.util-critical > span { background: var(--tblr-danger); }
.util-bar.util-high > span     { background: var(--tblr-orange); }
.util-bar.util-elevated > span { background: var(--tblr-warning); }
.util-bar.util-healthy > span,
.util-bar.util-optimal > span  { background: var(--tblr-success); }

/* ── Misc ────────────────────────────────────────────────────────────────── */

.lw-dev-code {
  font-family: var(--tblr-font-monospace);
}

.card-metric .subheader {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.625rem;
  font-weight: 600;
}

.hero-lede {
  max-width: 42rem;
}
