*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050910;
  --bg-alt: #0b1220;
  --accent: #39ff14;
  --accent-soft: rgba(57, 255, 20, 0.1);
  --text: #e5e7eb;
  --muted: #6b7280;
  --border: #111827;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

/* Animated background grid */
.bg-anim {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.8;
  pointer-events: none;
  animation: move-grid 30s linear infinite;
  z-index: -1;
}

@keyframes move-grid {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-40px, -40px, 0);
  }
}

/* Layout */
.header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(to right, #020617, #0b1120);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.9);
}

.header-title {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.header-status {
  font-size: 12px;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  height: calc(100vh - 96px);
}

/* Sidebar */
.sidebar {
  background: linear-gradient(to bottom, #020617, #020617 40%, #020617ee 100%);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-title {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav li {
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.nav li::before {
  content: ">";
  opacity: 0;
  margin-right: 4px;
  color: var(--accent);
  transition: opacity 0.15s ease, transform 0.15s ease;
  position: absolute;
  left: 6px;
}

.nav li:hover {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  transform: translateX(2px);
}

.nav li.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav li.active::before {
  opacity: 1;
  transform: translateX(0);
}

/* Content */
.content {
  padding: 16px 20px;
  position: relative;
  overflow: auto;
}

.page {
  display: none;
  animation: fade-in 0.25s ease-out;
}

.page.active {
  display: block;
}

.page h1 {
  font-size: 22px;
  margin-bottom: 8px;
}

.page p {
  color: var(--muted);
  margin-bottom: 16px;
}

/* Simple console-like cards */
.console-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  padding: 12px 14px;
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7), 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* Footer */
.footer {
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #020617;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    height: 56px;
    align-items: center;
  }
  .sidebar-title {
    display: none;
  }
  .nav {
    flex-direction: row;
  }
}
