/* ============================================================
   sidebar.css — fixed left navigation panel
   ============================================================ */
#sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 230px;
  z-index: 200;
  background: rgba(4, 2, 12, 0.96);
  border-right: 1px solid rgba(0, 229, 255, 0.1);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Brand ── */
.sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.sb-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--cyan));
  flex-shrink: 0;
}

.sb-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(0,229,255,0.5);
}

.sb-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Status badge ── */
.sb-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  flex-shrink: 0;
}

.sb-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.sb-status-text {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Nav ── */
.sb-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sb-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s, color 0.15s, border-left-color 0.15s;
  border-left: 2px solid transparent;
  letter-spacing: 0.02em;
}

.sb-nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.sb-nav-item.active {
  background: rgba(0,229,255,0.06);
  color: #fff;
  border-left-color: var(--cyan);
}

.sb-nav-icon {
  font-size: 13px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.7;
}

.sb-nav-item.active .sb-nav-icon {
  opacity: 1;
}

/* ── Section label ── */
.sb-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 10px 14px 4px;
  flex-shrink: 0;
}

/* ── Activity list ── */
.sb-activity {
  list-style: none;
  padding: 0;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.sb-act-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sb-act-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sb-act-txt,
#activity-list .act-txt {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-act-time,
#activity-list .act-time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: auto;
}

#activity-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 11px;
}
#activity-list li:last-child { border-bottom: none; }

#activity-list .act-ico {
  flex-shrink: 0;
  font-size: 10px;
  width: 12px;
  text-align: center;
}

/* ── Quick actions ── */
.sb-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 6px 10px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sb-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: center;
  line-height: 1.2;
}

.sb-action-btn:hover {
  background: rgba(176,64,255,0.1);
  border-color: rgba(176,64,255,0.3);
  color: #d4a0ff;
}

.sb-action-icon {
  font-size: 14px;
}

/* ── Footer ── */
.sb-footer {
  padding: 10px 14px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.sb-footer-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  line-height: 1.8;
}

/* ── Section Drawer ── */
.section-drawer {
  position: fixed;
  top: 0;
  left: 230px;
  bottom: 0;
  width: 380px;
  z-index: 150;
  background: rgba(4, 2, 12, 0.97);
  border-right: 1px solid rgba(0, 229, 255, 0.12);
  backdrop-filter: blur(20px);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.section-drawer.drawer-open {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  position: relative;
}

.drawer-header::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--section-accent, var(--cyan));
  box-shadow: 0 0 12px var(--section-accent, var(--cyan));
  position: absolute;
  top: 0; left: 0; right: 0;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-count {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.drawer-services {
  flex: 1;
  overflow-y: auto;
}
