#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 9998;
  font-family: 'Courier New', 'Lucida Console', Monaco, monospace;
}

#sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: #0a0a0a;
  border: 1px solid #1a3a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #00ff41;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
  transition: box-shadow 0.2s, transform 0.2s;
  z-index: 9999;
}

#sidebar-toggle svg {
  stroke: #00ff41;
  width: 18px;
  height: 18px;
}

#sidebar-toggle:hover {
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.35);
  transform: scale(1.05);
}

#sidebar-toggle.active {
  background: #0f1a0f;
}

#sidebar-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #00cc33;
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sidebar-panel {
  position: fixed;
  top: 0;
  left: -260px;
  width: 250px;
  height: 100%;
  background: #0a0a0a;
  border-right: 1px solid #1a3a1a;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: left 0.25s ease;
  z-index: 9998;
}

#sidebar-panel.open {
  left: 0;
}

#sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #1a3a1a;
  color: #00ff41;
  font-size: 13px;
}

#sidebar-close {
  background: none;
  border: none;
  color: #00ff41;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  font-family: inherit;
  margin: 0;
}

#sidebar-close:hover {
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

#sidebar-users {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

#sidebar-users::-webkit-scrollbar { width: 4px; }
#sidebar-users::-webkit-scrollbar-track { background: #0a0a0a; }
#sidebar-users::-webkit-scrollbar-thumb { background: #1a3a1a; border-radius: 2px; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 12px;
  color: #00cc33;
  transition: background 0.15s;
}

.sidebar-user:hover {
  background: #0f1a0f;
}

.sidebar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff41;
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.6);
  flex-shrink: 0;
}

.sidebar-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #1a3a1a;
  flex-shrink: 0;
  object-fit: cover;
}

.sidebar-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Bots in sidebar ── */
.sidebar-bot {
  opacity: 0.75;
}

.sidebar-bot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00aaff;
  box-shadow: 0 0 6px rgba(0, 170, 255, 0.5);
  flex-shrink: 0;
}

.sidebar-bot-badge {
  margin-left: auto;
  font-size: 9px;
  color: #00aaff;
  border: 1px solid #00aaff44;
  padding: 1px 5px;
  border-radius: 8px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  #sidebar-toggle {
    top: auto;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
  }

  #sidebar-panel {
    width: 100%;
    left: -100%;
  }

  #sidebar-panel.open {
    left: 0;
  }

  #sidebar-header {
    padding: 20px 16px;
    font-size: 15px;
  }

  #sidebar-close {
    font-size: 24px;
    padding: 0 8px;
  }

  .sidebar-user {
    padding: 12px 20px;
    font-size: 14px;
    gap: 12px;
  }

  .sidebar-avatar {
    width: 32px;
    height: 32px;
  }

  .sidebar-dot {
    width: 8px;
    height: 8px;
  }
}
