:root {
  --bg: #0f1115;
  --selectbg: rgba(255,255,255,0.06);
  --card: #141821;
  --text: #e7e9ee;
  --muted: #a5adba;
  --accent: #4f7cff;
  --accent-2: #3ac781;
  --danger: #ff5d5d;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

.container {
  max-width: 900px;
  margin: 32px auto;
  padding: 24px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

h1 {
  margin: 0 0 16px 0;
  font-size: 22px;
  font-weight: 600;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.controls label {
  /*color: var(--muted);*/
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,240,240,0.5);
  padding: 8px 10px;
  border-radius: 8px;
}

select, button {
  height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
}

select {
  background: var(--selectbg);
  color: var(--text);
}

button {
  background: var(--accent);
  color: white;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#stop { background: var(--danger); }
#clear { background: #2a2f3a; }

.log {
  background: #0a0d12;
  border-radius: 8px;
  padding: 12px;
  height: 55vh;
  overflow: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* status color hints (optional) */
.status-waiting { color: var(--muted); }
.status-found { color: var(--accent-2); }
.status-default { color: var(--text); }

/* LIGHT THEME */
body.light-theme, html.light-theme {
  --bg: #f4f6fa;
  --selectbg: rgba(255,255,255,1);
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #555;
  --accent: #3366ff;
  --accent-2: #2bbf6c;
  --danger: #e63946;
}

.light-theme .log {
  background: #f0f2f7;
}
