:root {
  --bg: #0b1020;
  --panel: #111827;
  --panel-glass: rgba(17, 24, 39, 0.85);

  --fg: #e5e7eb;
  --muted: #9ca3af;

  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.15);

  --border: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- HEADER ---------- */

header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(to right, #0f172a, #020617);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}

.logo img {
  width: 100%;
  height: 100%;
}

.title h1 {
  margin: 0;
  font-size: 20px;
}

.title span {
  font-size: 12px;
  color: var(--muted);
}

header button {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

header button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- MAIN LAYOUT ---------- */

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------- EDITOR PANEL ---------- */

.panel {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.editor-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}

textarea {
  width: 100%;
  height: 160px;
  background: linear-gradient(to bottom right, #020617, #020617);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-family: Consolas, monospace;
  font-size: 14px;
  resize: none;
  transition: all 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px var(--accent-soft),
    0 0 20px rgba(56, 189, 248, 0.15);
}

/* ---------- GRAPH ---------- */

#graph {
  flex: 1;
  min-height: 360px;
  background: radial-gradient(circle at top, #020617, #020617);
}

/* ---------- FOOTER ---------- */

footer {
  text-align: center;
  padding: 10px;
  font-size: 12px;
  color: var(--muted);
  background: var(--panel);
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

