/* frontend/styles.css */
:root {
  --bg: #0f1115;
  --panel: #151923;
  --text: #e6e6e6;
  --muted: #a5a5a5;
  --accent: #5ea1ff;
  --ok: #1db954;
  --warn: #f5c542;
  --err: #ff5c5c;
  --info: #4db6e6;
  --border: #2a2f3a;
}

@media (prefers-color-scheme: light) {
  :root { --bg:#ffffff; --panel:#f5f7fb; --text:#111; --muted:#666; --accent:#346ee6; --border:#d9dee8; }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: var(--bg);
  color: var(--text);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.controls {
  padding: 8px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

#grid {
  padding: 8px 16px 40px;
}

.row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.cell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cell .val {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell .meta {
  font-size: 12px;
  color: var(--muted);
}

.idcol {
  min-width: 300px;
  justify-content: space-between;
}

.statusbar { position: sticky; bottom: 0; }

.badge { padding: 2px 6px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); }
.badge.same { background: transparent; }
.badge.new { background: rgba(29,185,84,.12); border-color: #214a34; color: var(--ok); }
.badge.changed { background: rgba(245,197,66,.12); border-color: #4a3e21; color: var(--warn); }
.badge.missing-import { background: rgba(255,92,92,.12); border-color: #4a2121; color: var(--err); }
.badge.missing-master { background: rgba(77,182,230,.12); border-color: #1f3b46; color: var(--info); }

.lang-toggle {
  display:flex; gap:8px; flex-wrap: wrap; align-items:center;
  background: var(--panel); border:1px solid var(--border); padding:8px; border-radius:8px;
}
.lang-toggle label { display:flex; gap:6px; align-items:center; background:#0e121b; padding:4px 8px; border-radius:6px; }
.lang-toggle input { accent-color: var(--accent); }

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: not-allowed; }
.delete { background: #d94848; }
