/* Logitech shell — sidebar + navbar + base typography */
:root {
  --lg-font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --lg-ink: #0f172a;
  --lg-muted: #64748b;
  --lg-line: #e2e8f0;
  --lg-surface: #ffffff;
  --lg-soft: #f8fafc;
  --lg-accent: #0f4c81;
  --lg-accent-soft: #e8f1f8;
  --lg-sidebar-w: 280px;
}

html, body {
  font-family: var(--lg-font) !important;
  color: var(--lg-ink);
  background: var(--lg-soft) !important;
  -webkit-font-smoothing: antialiased;
}

html[data-pc-theme="dark"],
html[data-pc-theme="dark"] body {
  color: var(--lg-ink) !important;
  background: var(--lg-soft) !important;
}

h1, h2, h3, h4, h5, h6,
.pc-mtext,
.b-brand,
.dropdown-item,
.pc-link {
  font-family: var(--lg-font) !important;
}

/* Sidebar */
.pc-sidebar {
  background: var(--lg-surface) !important;
  border-right: 1px solid var(--lg-line) !important;
  box-shadow: none !important;
}

.pc-sidebar .m-header {
  border-bottom: 1px solid var(--lg-line);
  padding: 1.1rem 1.25rem !important;
  min-height: 72px;
  display: flex;
  align-items: center;
}

.pc-sidebar .b-brand {
  gap: 0.75rem;
  text-decoration: none !important;
  width: 100%;
}

.lg-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--lg-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.lg-brand-title {
  margin: 0;
  color: var(--lg-ink) !important;
  font-weight: 650 !important;
  font-size: 0.95rem !important;
  line-height: 1.25 !important;
}

.lg-brand-sub {
  margin: 0;
  color: var(--lg-muted) !important;
  font-size: 0.72rem !important;
  font-weight: 500;
  line-height: 1.2 !important;
}

.pc-sidebar .pc-navbar {
  padding: 0.75rem 0.85rem 1.5rem !important;
}

.pc-sidebar .pc-caption {
  margin: 1rem 0.5rem 0.35rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pc-sidebar .pc-caption label {
  color: var(--lg-muted) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

.pc-sidebar .pc-link {
  border-radius: 10px !important;
  margin: 2px 0 !important;
  padding: 0.65rem 0.85rem !important;
  color: #334155 !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  transition: background 0.18s ease, color 0.18s ease;
}

.pc-sidebar .pc-link .pc-micon {
  color: var(--lg-muted) !important;
}

.pc-sidebar .pc-link:hover {
  background: var(--lg-soft) !important;
  color: var(--lg-ink) !important;
}

.pc-sidebar .pc-link:hover .pc-micon {
  color: var(--lg-accent) !important;
}

.pc-sidebar .pc-item > .pc-link.active,
.pc-sidebar .pc-link.active {
  background: var(--lg-accent-soft) !important;
  color: var(--lg-accent) !important;
  font-weight: 600 !important;
  box-shadow: inset 3px 0 0 var(--lg-accent);
}

.pc-sidebar .pc-link.active .pc-micon {
  color: var(--lg-accent) !important;
}

.pc-sidebar .pc-submenu .pc-link {
  padding-left: 2.6rem !important;
  font-size: 0.86rem !important;
}

/* Header / Navbar */
.pc-header {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lg-line) !important;
  box-shadow: none !important;
}

.pc-header .pc-head-link {
  border-radius: 10px !important;
  color: #334155 !important;
}

.pc-header .pc-head-link:hover {
  background: var(--lg-soft) !important;
  color: var(--lg-accent) !important;
}

.lg-project-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--lg-line);
  background: var(--lg-surface);
  border-radius: 999px;
  padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  color: var(--lg-ink) !important;
  text-decoration: none !important;
  font-weight: 560;
  font-size: 0.875rem;
  max-width: min(320px, 55vw);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lg-project-switch:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.lg-project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}

.lg-project-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lg-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--lg-line);
  background: var(--lg-surface);
  border-radius: 999px;
  padding: 0.3rem 0.75rem 0.3rem 0.3rem;
  color: var(--lg-ink) !important;
  text-decoration: none !important;
}

.lg-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lg-accent-soft);
  color: var(--lg-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
}

.lg-user-meta {
  display: none;
  line-height: 1.15;
  text-align: left;
}

@media (min-width: 768px) {
  .lg-user-meta {
    display: block;
  }
}

.lg-user-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lg-ink);
}

.lg-user-role {
  display: block;
  font-size: 0.7rem;
  color: var(--lg-muted);
  font-weight: 500;
}

.pc-header .dropdown-user-profile .dropdown-header {
  background: var(--lg-accent) !important;
}

.pc-content {
  background: transparent !important;
}

.pc-footer {
  background: var(--lg-surface) !important;
  border-top: 1px solid var(--lg-line) !important;
}

.pc-footer h6 {
  color: var(--lg-ink) !important;
}

#scrollToTop {
  background: var(--lg-accent) !important;
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.25) !important;
}

@media (max-width: 1023.98px) {
  .pc-sidebar {
    box-shadow: 8px 0 30px rgba(15, 23, 42, 0.12) !important;
  }
}
