/* Token, reset, shell, sidebar. Arah visual: dark terminal, sudut tegas, angka tabular. */
:root {
  --bg: #07090c;
  --bg-2: #0a0d12;
  --panel: #0d1117;
  --panel-2: #121821;
  --line: #1c2430;
  --line-2: #29354a;
  --text: #e8edf5;
  --muted: #7d8899;
  --faint: #4b5567;
  --accent: #f0b90b;
  --accent-ink: #120e00;
  --up: #14c784;
  --down: #ff4d6a;
  --up-bg: rgba(20, 199, 132, 0.1);
  --down-bg: rgba(255, 77, 106, 0.1);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sidebar: 218px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.45 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Atmosfer: grid tipis dan grain halus di belakang semua layar. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(240, 185, 11, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 185, 11, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 0%, #000 0%, transparent 70%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ----- Shell ----- */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  height: 100vh;
}

/* ----- Sidebar ----- */
.sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  padding: 18px 12px 14px;
  min-height: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 22px;
}
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 800 17px/1 var(--display);
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.brand-text {
  font: 700 16px/1.05 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav { display: grid; gap: 2px; }
.nav a,
.nav-soon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  color: var(--muted);
  font: 600 14px/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(240, 185, 11, 0.12), transparent 80%);
}
.nav svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
}
.nav-soon { opacity: 0.45; cursor: not-allowed; }
.nav-soon em {
  margin-left: auto;
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--faint);
  border: 1px solid var(--line-2);
  padding: 3px 5px;
  text-transform: uppercase;
}

.sb-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 14px 8px 0;
  border-top: 1px solid var(--line);
}
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.dot {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--faint);
}
.dot.ok { background: var(--up); box-shadow: 0 0 0 3px var(--up-bg); }
.dot.bad { background: var(--down); box-shadow: 0 0 0 3px var(--down-bg); }

/* ----- Area konten ----- */
.view {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 26px 40px;
  outline: none;
}
.screen-host { min-height: 100%; }
.page { display: flex; flex-direction: column; gap: 16px; }

/* Animasi masuk bertahap, sekali per layar. */
.reveal {
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  * { transition: none !important; }
}
