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

body {
  background: #0a0e17;
  color: #c8d0dc;
  font-family: 'Courier New', monospace;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

/* Toolbar */
.toolbar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(10, 14, 23, 0.95);
  border-bottom: 1px solid rgba(0, 229, 255, 0.13);
  gap: 12px;
  z-index: 100;
  position: relative;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo {
  font-size: 13px;
  font-weight: bold;
  color: #8892a0;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo .accent {
  color: #00e5ff;
}

.pair-label {
  font-size: 14px;
  font-weight: bold;
  color: #e0e6ed;
  white-space: nowrap;
}

.current-price {
  font-size: 15px;
  font-weight: bold;
  color: #00e676;
  white-space: nowrap;
  min-width: 80px;
}

.toolbar-center {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-group {
  display: flex;
  gap: 2px;
}

.btn-group button {
  background: transparent;
  border: 1px solid #1a2332;
  color: #8892a0;
  padding: 4px 10px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-group button:first-child {
  border-radius: 4px 0 0 4px;
}

.btn-group button:last-child {
  border-radius: 0 4px 4px 0;
}

.btn-group button:hover {
  border-color: rgba(0, 229, 255, 0.4);
  color: #00e5ff;
}

.btn-group button.active {
  background: rgba(0, 229, 255, 0.08);
  border-color: #00e5ff;
  color: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.13);
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-group label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #8892a0;
  cursor: pointer;
  white-space: nowrap;
}

.toggle-group input[type="checkbox"] {
  accent-color: #00e5ff;
  width: 13px;
  height: 13px;
  cursor: pointer;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.stat-tps {
  font-size: 11px;
  color: #8892a0;
  white-space: nowrap;
}

.stat-tps span {
  color: #00e5ff;
  font-weight: bold;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff1744;
  animation: pulse 2s infinite;
}

.status-dot.connected {
  background: #00e676;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Chart area */
.chart-wrapper {
  height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

#chart-container {
  height: 82%;
  position: relative;
  width: 100%;
}

#heatmap-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

#delta-container {
  height: 18%;
  border-top: 1px solid #1a2332;
  position: relative;
  width: 100%;
}

#delta-canvas {
  width: 100%;
  height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .toolbar {
    height: auto;
    min-height: 48px;
    padding: 6px 8px;
    flex-wrap: wrap;
  }

  .toggle-group {
    display: none;
  }

  .toolbar-center {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 4px;
  }

  .chart-wrapper {
    height: calc(100vh - 80px);
  }
}
