:root {
  --bg-primary: #070d18;
  --bg-surface: #0e1726;
  --bg-surface-elevated: #142033;
  --border: rgba(255, 255, 255, 0.1);
  --border-focus: #00e5ff;
  --text-primary: #f0f4f8;
  --text-secondary: #8fa3bf;
  --text-muted: #536b88;
  --accent-cyan: #00e5ff;
  --accent-blue: #2979ff;
  --accent-green: #00e676;
  --accent-amber: #ffab00;
  --accent-red: #ff3d71;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  padding: 24px;
}

.ingestor-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ingestor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.ingestor-title h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ingestor-title p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}

/* Metric Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.metric-card .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.metric-card .value {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-top: 6px;
}

/* Ingestion Control */
.pipeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-ingest {
  background: linear-gradient(135deg, #00e5ff, #2979ff);
  color: #070d18;
  font-weight: 800;
  border: none;
  cursor: pointer;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-ingest:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 16px;
}

.data-table th {
  text-align: left;
  padding: 12px;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
}

.ledger-box {
  background: #04080f;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  font-family: monospace;
  font-size: 12px;
  color: #00e676;
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
