/* ═══════════════════════════════════════════
   SIDEBAR NAVIGATION
   ═══════════════════════════════════════════ */

/* ── App Shell ── */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── Sidebar ── */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: rgba(13, 20, 36, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  padding: 0 0 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  flex-shrink: 0;
}

/* Sidebar Logo area */
.sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--glow-blue);
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.sidebar-logo-text span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-logo-sub {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Sidebar Clock */
.sidebar-clock {
  padding: 8px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 6px;
}

.sidebar-clock-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  line-height: 1;
}

.sidebar-clock-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sidebar section label */
.sidebar-section-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 10px 20px 6px;
}

/* Nav items */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
  flex: 1;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  text-decoration: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.sidebar-nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.06);
}

.sidebar-nav-item.active {
  background: rgba(96,165,250,0.12);
  color: var(--accent-blue);
  border-color: rgba(96,165,250,0.2);
}

.sidebar-nav-item.active .nav-icon {
  filter: drop-shadow(0 0 6px rgba(96,165,250,0.6));
}

.nav-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.nav-label { flex: 1; }

.nav-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  background: rgba(52,211,153,0.15);
  color: var(--accent-green);
  border: 1px solid rgba(52,211,153,0.25);
  letter-spacing: 0.04em;
}

.nav-badge.yellow {
  background: rgba(251,191,36,0.12);
  color: var(--accent-yellow);
  border-color: rgba(251,191,36,0.2);
}

/* Sidebar refresh area */
.sidebar-actions {
  padding: 12px 12px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 10px;
}

.sidebar-refresh-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.2);
  color: var(--accent-blue);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.sidebar-refresh-btn:hover {
  background: rgba(96,165,250,0.15);
  border-color: rgba(96,165,250,0.35);
  box-shadow: var(--glow-blue);
}

.sidebar-auto-refresh {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sidebar-auto-refresh .dot-green {
  width: 5px;
  height: 5px;
}

/* ── Content Area ── */
.content-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Ticker tape is full width above content */
.ticker-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Content sections */
.content-section {
  display: none;
  padding: 24px;
  animation: fadeInUp 0.25s ease;
}

.content-section.active {
  display: block;
}

/* Page title */
.page-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.page-title .page-icon {
  font-size: 22px;
}

/* ── Mobile sidebar overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 90;
  /* NO backdrop-filter here — it creates a stacking context that
     blurs the sidebar on mobile even though sidebar z-index is higher */
}

/* Sidebar scroll: overscroll containment */
.sidebar {
  overscroll-behavior: contain;
}
.sidebar-nav {
  overflow-y: auto;
  overflow-x: hidden;
}

/* sidebar-toggle: defined in mobile.css */
.sidebar-toggle { display: none; }

