.panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  align-items: start;
}

/* Stats dashboard cards */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #020204;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 12px var(--shadow-glow);
  transform: none;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: monospace;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.stats-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

/* Network canvas viewport */
.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.panel-header-row .panel-title {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.status-badge {
  font-size: 0.7rem;
  font-family: monospace;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.25);
  color: #00f3ff;
  text-shadow: 0 0 4px #00f3ff;
  letter-spacing: 0.05em;
}

.canvas-wrap {
  width: 100%;
  height: 480px;
  background: #000000;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.95);
}

#networkCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#networkCanvas:active {
  cursor: grabbing;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .canvas-wrap {
    height: 380px;
  }
}
