/* falai/static/shared/css/shared.css — common tokens and base styles for the lab UI */

:root {
  color-scheme: dark;
  /* Color tokens */
  --bg: #14161a;
  --surface: #1c1f26;
  --border: #2a2e37;
  --accent: #ffd479;
  --muted: #9aa0ad;
  --text: #e7e9ee;
  --ok: #7ed07e;
  --error: #ff6b6b;
  --info: #79c8ff;
  --purple: #c79bf2;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 1400px; margin: 0 auto; padding: 32px 20px 80px; }

.status { font-size: 13px; color: var(--muted); }
.status.loading { color: var(--accent); }
.status.error { color: var(--error); }
.status.ok { color: var(--ok); }

/* ── Nav bar ── */
.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-wrap: wrap;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-link.active {
  background: var(--accent);
  color: var(--bg);
}

/* ── Page hero (textures, fal-logs, seamless) ── */
h1 { font-size: 26px; margin: 0 0 4px; }
.muted { color: var(--muted); margin: 0 0 28px; font-size: 14px; }

/* ── Filter chips (textures, fal-logs) ── */
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.on {
  background: #244;
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Modal shell (textures, fal-logs) ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.hidden { display: none; }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}

/* ── Form controls (textures, seamless) ── */
input[type=text],
input[type=number],
input[type=file],
select,
textarea {
  width: 100%;
  background: #0b0d11;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  box-sizing: border-box;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── Run button (textures, seamless) ── */
.run-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.run-btn:hover:not(:disabled) { opacity: .85; }
.run-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Filters bar base (textures, fal-logs) ── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Filter labels + empty states (textures, fal-logs) ── */
.filters span { font-size: 13px; color: var(--muted); margin-right: 4px; }
#empty-msg { text-align: center; color: var(--muted); padding: 48px 0; font-size: 15px; }
