/* frontend/styles.css */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.card {
  background: #020617;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid #1f2937;
}

h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.sub {
  font-size: 12px;
  color: #9ca3af;
}

.btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: #2563eb;
  color: white;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.final-mode {
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  margin-right: 4px;
  background: #111827;
  color: #9ca3af;
}

.lane-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.lane-block {
  border-top: 1px solid #1f2937;
  padding-top: 8px;
  margin-top: 8px;
}

.muted {
  color: #9ca3af;
  font-size: 12px;
}

.error {
  color: #f97373;
  font-size: 12px;
  margin-top: 8px;
}

pre {
  white-space: pre-wrap;
  font-size: 12px;
}

/* Status bar */

#status-bar {
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f3f4f6;
  font-size: 0.9rem;
  border: 1px solid #e5e7eb;
}

#status {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #4b5563;
}

/* History table */

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-top: 4px;
}

.history-table th,
.history-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #1f2937;
}

.history-table th {
  text-align: left;
  font-weight: 600;
  color: #e5e7eb;
  background: #020617;
}

.history-table tr:nth-child(even) {
  background: #020617;
}

.history-table tr:nth-child(odd) {
  background: #020617;
}

.badge-source {
  display: inline-block;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  background: #111827;
  color: #9ca3af;
}

.badge-mode {
  display: inline-block;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  background: #1f2937;
  color: #e5e7eb;
}
