.react-example-container {
  padding: 16px;
  height: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--example-bg-color);
  color: var(--example-text-color);
  overflow-y: auto;
}

.react-example-container h2 {
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--example-border-color);
  color: var(--example-primary-color);
}

.react-example-container h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--example-text-color);
  font-size: 1.1em;
}

/* Stats Overview */
.stats-overview {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  flex: 1;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--example-primary-color);
}

.stat-label {
  font-size: 12px;
  color: var(--example-muted-text-color);
  margin-top: 4px;
}

/* Dashboard Sections */
.dashboard-section {
  margin-bottom: 20px;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

/* Node Chart */
.node-stats-chart {
  display: flex;
  height: 120px;
  align-items: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: 24px;
  position: relative;
}

.chart-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.chart-bar {
  width: 24px;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
}

.chart-label {
  position: absolute;
  bottom: -24px;
  font-size: 10px;
  color: var(--example-muted-text-color);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transform: rotate(-45deg);
  transform-origin: top left;
  margin-left: 12px;
}

/* Category Filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-button {
  background-color: transparent;
  border: none;
  color: var(--example-text-color);
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
  border-bottom: 3px solid transparent;
}

.filter-button:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.filter-button.active {
  background-color: rgba(255, 255, 255, 0.1);
  font-weight: bold;
}

/* Node List */
.node-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 8px;
}

.node-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition:
    transform 0.2s,
    background-color 0.2s;
}

.node-item:hover {
  background-color: rgba(0, 0, 0, 0.2);
  transform: translateX(2px);
}

.node-badge {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 12px;
}

.node-title {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--example-muted-text-color);
}

/* Empty State */
.empty-state {
  padding: 20px;
  text-align: center;
  color: var(--example-muted-text-color);
  font-style: italic;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--example-border-color);
  font-size: 0.8em;
  text-align: center;
  color: var(--example-muted-text-color);
}

/* API Examples Section */
.api-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.api-examples h4 {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 5px;
  color: var(--example-text-color);
}

/* Scrollbar styling */
.node-list::-webkit-scrollbar {
  width: 6px;
}

.node-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.node-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.node-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
