/* ─────────────────────────────────────────────────────────────────────────────
   Demo Environment Styles
   Shared across all /partners/demo/* pages
   Northstar Managed Services / Lakeside Property Group — fictional demo only
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #faf8f5;
  --bg-dark: #1a2e1a;
  --fg: #1c1c1c;
  --fg-light: #faf8f5;
  --accent: #3a6b35;
  --accent-light: #5a9e52;
  --muted: #6b6b6b;
  --border: #e0ddd8;
  --cream: #faf8f5;
  --forest: #1a2e1a;
  --sage: #7a9e72;
  --northstar-blue: #1d4ed8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Demo Environment Banner ─────────────────────────────────────────────── */
.demo-banner {
  background: #fef3c7;
  border-bottom: 1px solid #fcd34d;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #92400e;
  position: sticky;
  top: 0;
  z-index: 200;
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.demo-banner a {
  color: #92400e;
  font-weight: 600;
  margin-left: 4px;
}
.demo-banner a:hover { text-decoration: underline; }

/* ── Northstar Nav Bar ────────────────────────────────────────────────────── */
.demo-nav {
  background: #1e3a5f;
  padding: 0;
  position: sticky;
  top: 38px; /* sit below demo banner */
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.demo-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}
.demo-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.demo-logo svg { color: #60a5fa; }
.demo-top-nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.demo-top-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background 0.12s, color 0.12s;
}
.demo-top-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.demo-user-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
}
.demo-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #60a5fa;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.demo-user-info {
  display: flex;
  flex-direction: column;
}
.demo-user-info strong {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.demo-user-info span {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

/* ── Demo Content Area ───────────────────────────────────────────────────── */
.demo-content {
  flex: 1;
}

/* ── Demo Footer ──────────────────────────────────────────────────────────── */
.demo-footer {
  background: #1a2e1a;
  color: rgba(250,248,245,0.6);
  padding: 20px 24px;
  text-align: center;
}
.demo-footer-inner { max-width: 1200px; margin: 0 auto; }
.demo-footer p {
  font-size: 13px;
  line-height: 1.5;
}
.demo-footer a {
  color: #7a9e72;
  font-weight: 600;
  text-decoration: none;
}
.demo-footer a:hover { text-decoration: underline; }
.demo-footer-sub {
  font-size: 11px !important;
  color: rgba(250,248,245,0.35) !important;
  margin-top: 4px;
}

/* ── Demo Nav: portal-sidebar variant ────────────────────────────────────── */
.portal-sidebar {
  width: 220px;
  background: var(--forest);
  color: var(--cream);
  flex-shrink: 0;
  padding: 24px 0;
}
.portal-sidebar-section { margin-bottom: 8px; }
.portal-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  padding: 8px 20px 4px;
}
.portal-nav-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 20px;
  color: rgba(250,248,245,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.portal-nav-item:hover,
.portal-nav-item.active {
  background: rgba(250,248,245,0.1);
  color: var(--cream);
}
.portal-nav-item svg { flex-shrink: 0; opacity: 0.7; }
.portal-nav-item.active svg { opacity: 1; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .demo-top-nav { display: none; }
  .demo-nav-inner { gap: 12px; }
  .demo-user-info { display: none; }
}