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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #1a1a2e;
  color: #eaeaea;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #333;
}

h1 {
  font-size: 24px;
  font-weight: 600;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ff4444;
}

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

.back-link {
  color: #4ea8de;
  text-decoration: none;
  font-size: 14px;
  margin-right: 16px;
}

.back-link:hover {
  text-decoration: underline;
}

.controls {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.control-group label {
  font-size: 12px;
  color: #a0a0a0;
}

input, select, button {
  padding: 8px 12px;
  border: 1px solid #404040;
  border-radius: 6px;
  background: #222222;
  color: #e8e8e8;
  font-size: 14px;
}

input:focus, select:focus {
  outline: none;
  border-color: #4a9eff;
}

button {
  background: #4a9eff;
  border: none;
  cursor: pointer;
  font-weight: 500;
  padding: 8px 24px;
}

button:hover { background: #3a8eef; }

button:disabled {
  background: #404040;
  cursor: not-allowed;
}

.metric-card {
  background: #16213e;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.metric-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.metric-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.metric-card-meta {
  font-size: 12px;
  color: #a0a0a0;
  font-family: 'Courier New', monospace;
}

.metric-card-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  color: #a0a0a0;
}

.metric-card-controls label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.chart-wrap {
  position: relative;
  height: 390px;
  min-height: 150px;
  resize: vertical;
  overflow: auto;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}
