.panel {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 20;
  width: 280px;
  max-width: calc(100vw - 2rem);
  background: rgba(15, 23, 42, 0.88);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  transition: border-bottom-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.headerCollapsed {
  border-bottom-color: transparent;
}

.collapseButton {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #f8fafc;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
  margin-left: 12px;
}

.collapseButton:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.collapseIcon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.iconRotated {
  transform: rotate(180deg);
}

.title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.subtitle {
  margin-top: 2px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.content {
  display: grid;
  gap: 12px;
  padding: 12px 16px;
  max-height: 1000px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contentCollapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
  gap: 0;
}

.sectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
}

.sectionTitle {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 6px;
}

.actions {
  display: flex;
  gap: 8px;
}

.actionButton {
  background: transparent;
  border: none;
  font-size: 10px;
  color: #94a3b8;
  cursor: pointer;
  font-weight: 700;
  transition: color 0.15s;
  padding: 0;
}

.actionButton:hover {
  color: #ffffff;
}

.listContainer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom scrollbar for premium look */
.listContainer::-webkit-scrollbar {
  width: 4px;
}

.listContainer::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.listContainer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.listContainer::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.listItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  color: #e2e8f0;
}

.listItem:hover {
  background: rgba(255, 255, 255, 0.08);
}

.listItemLeft {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.itemHashIcon {
  width: 12px;
  height: 12px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.itemName {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
  color: #fff;
}

.eyeIcon {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0.7;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.listItem:hover .eyeIcon {
  opacity: 1;
}

/* Active status styling */
.listItemActiveSky .itemHashIcon {
  color: #38bdf8;
}

.listItemActiveEmerald .itemHashIcon {
  color: #34d399;
}

/* Inactive status styling */
.listItemInactive {
  opacity: 0.55;
}

.listItemInactive .itemName {
  color: #94a3b8;
}

.listItemInactive:hover {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.06);
}

.eyeIconInactive {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  opacity: 0.5;
  flex-shrink: 0;
}
