* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0f0f23;
  color: #cccccc;
  line-height: 1.6;
}

.header {
  background: #1a1a2e;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

.header h1 {
  color: #00ff88;
  font-size: 1.5rem;
}

.status-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.status {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status.connected {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
}

.status.disconnected {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
}

.version {
  color: #666;
  font-size: 0.85rem;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: #1a1a2e;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #333;
}

.card h3 {
  color: #888;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card .metric {
  font-size: 1.6rem;
  font-weight: bold;
  color: #00ff88;
  word-break: break-all;
}

.card .label {
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.section {
  background: #1a1a2e;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #333;
}

.section h2 {
  color: #00ff88;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid #333;
  border-radius: 6px;
  background: #0f0f23;
  color: #cccccc;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn.active {
  border-color: #00ff88;
  color: #00ff88;
}

.hint {
  margin-left: auto;
  color: #666;
  font-size: 0.85rem;
}

.chart {
  width: 100%;
  height: 420px;
  background: #0f0f23;
  border: 1px solid #333;
  border-radius: 8px;
}

.table-wrap {
  overflow-x: auto;
  background: #0f0f23;
  border: 1px solid #333;
  border-radius: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th, .table td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid #222;
  text-align: left;
  white-space: nowrap;
}

.table th {
  color: #888;
  font-weight: 600;
  background: rgba(26, 26, 46, 0.6);
  position: sticky;
  top: 0;
}

.footer {
  text-align: center;
  padding: 1rem;
  color: #444;
  font-size: 0.8rem;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0f0f23;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

