* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

h1 {
  color: #4a9eff;
  margin-bottom: 30px;
  border-bottom: 2px solid #4a9eff;
  padding-bottom: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 20px;
}

.stat-card h3 {
  color: #4a9eff;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
}

.stat-card .value {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
}

.filters {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.filters input {
  width: 100%;
  padding: 10px;
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 14px;
}

.filters input:focus {
  outline: none;
  border-color: #4a9eff;
}

.keys-section {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.keys-section h2 {
  color: #4a9eff;
  margin-bottom: 15px;
}

.keys-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.key-item {
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.key-item:hover {
  border-color: #4a9eff;
  background: #252525;
}

.key-item .key-name {
  color: #4a9eff;
  font-weight: bold;
  margin-bottom: 5px;
}

.key-item .key-preview {
  color: #888;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-viewer {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 20px;
  max-height: 600px;
  overflow-y: auto;
}

.data-viewer h2 {
  color: #4a9eff;
  margin-bottom: 15px;
}

.data-viewer pre {
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  padding: 15px;
  overflow-x: auto;
  color: #e0e0e0;
  font-size: 13px;
  line-height: 1.5;
}

.hidden {
  display: none;
}

.loading {
  text-align: center;
  color: #888;
  padding: 20px;
}

.error {
  background: #4a2a2a;
  border: 1px solid #8a4a4a;
  color: #ff8888;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 10px;
}

.status-indicator.connected {
  background: #4caf50;
}

.status-indicator.disconnected {
  background: #f44336;
}

.status-indicator.connecting {
  background: #ff9800;
}

