/* ═══════════════════════════════════════
   SMARTYPANT SIDEBAR — static/css/sidebar.css
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

#sp-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: #0a0e27;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

.sp-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.sp-sidebar-logo:hover { opacity: 0.85; }

.sp-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.sp-logo-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.sp-nav-group {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.42);
  transition: all 0.15s ease;
  position: relative;
  cursor: pointer;
  width: 100%;
}
.sp-nav-link:hover { background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.72); }

.sp-nav-link.active { background: rgba(0, 230, 255, 0.08); color: #00E6FF; }
.sp-nav-link.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #00E6FF;
}

.sp-nav-link.sp-disabled { pointer-events: none; opacity: 0.5; }

.sp-nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.sp-nav-label { font-size: 13px; font-weight: 500; white-space: nowrap; flex: 1; }
.sp-nav-link.active .sp-nav-label { font-weight: 600; }

.sp-nav-badge {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.sp-nav-divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 0 16px; }

.sp-sidebar-status {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sp-pulse-ring {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #06d6a0; }
.sp-pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(6, 214, 160, 0.25);
  animation: sp-pulse 2.5s ease-in-out infinite;
}
@keyframes sp-pulse {
  0%, 100% { transform: scale(0.7); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 0; }
}
.sp-status-text { font-size: 11.5px; font-weight: 600; color: rgba(6, 214, 160, 0.6); letter-spacing: 0.02em; }

/* ─── Push page content right ─── */
body {
  padding-left: 200px;
}

/* ─── Mobile: hide sidebar ─── */
@media (max-width: 768px) {
  #sp-sidebar { display: none; }
  body { padding-left: 0; }
}