/* root.xfrh611lyy.bond :: Hacker Console UI */
/* style.css */

:root {
  --bg: #050608;
  --fg: #00ff66;
  --fg-soft: #00c94f;
  --accent: #33ccff;
  --error: #ff3366;
  --warn: #ffcc33;
  --muted: #444b52;
  --font-main: "JetBrains Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* Global reset */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, #0b1220 0%, #050608 45%, #000000 100%);
  color: var(--fg);
  font-family: var(--font-main);
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

/* CRT effects */

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 100% 2px;
  mix-blend-mode: soft-light;
  opacity: 0.35;
  z-index: 1;
}

.crt-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: 0 0 80px rgba(0, 255, 102, 0.35) inset;
  z-index: 0;
}

/* Main frame */

.frame {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
}

/* Top bar */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--fg-soft);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-pill {
  border: 1px solid var(--muted);
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.8);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff66;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.9);
}

.status-led.warn {
  background: var(--warn);
  box-shadow: 0 0 10px rgba(255, 204, 51, 0.9);
}

.status-led.error {
  background: var(--error);
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.9);
}

/* Grid layout */

.grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  grid-template-rows: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 10px;
}

/* Panels */

.panel {
  border: 1px solid rgba(0, 255, 102, 0.25);
  border-radius: 6px;
  padding: 8px 10px;
  background: radial-gradient(circle at top left, rgba(0, 255, 102, 0.08), rgba(0, 0, 0, 0.9));
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(0, 255, 102, 0.08);
  mix-blend-mode: screen;
  pointer-events: none;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-title span {
  font-weight: 600;
}

.panel-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--muted);
  color: var(--muted);
}

.panel-body {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
  color: var(--fg);
  overflow: auto;   /* ← 从 hidden 改成 auto */
  position: relative;
}


.panel-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-main);
}

.panel-footer {
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ASCII logo */

.ascii-logo {
  font-size: 11px;
  line-height: 1.1;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(51, 204, 255, 0.8);
  margin-bottom: 6px;
}

/* Boot log */

.boot-log {
  font-size: 11px;
  line-height: 1.35;
}

.boot-line {
  display: flex;
  gap: 6px;
}

.boot-tag {
  color: var(--muted);
}

.boot-ok {
  color: var(--fg-soft);
}

.boot-warn {
  color: var(--warn);
}

.boot-error {
  color: var(--error);
}

/* Terminal */

.terminal-output {
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}

.terminal-output::-webkit-scrollbar {
  width: 4px;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 102, 0.4);
  border-radius: 999px;
}

.terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 2px;
}

.terminal-prompt {
  color: var(--accent);
}

.terminal-text {
  flex: 1;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  border-top: 1px solid rgba(0, 255, 102, 0.18);
  padding-top: 4px;
}

.terminal-input-prefix {
  color: var(--accent);
  font-size: 12px;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-main);
  font-size: 12px;
}

.terminal-input::placeholder {
  color: var(--muted);
}

.terminal-cursor {
  width: 7px;
  height: 12px;
  background: var(--fg);
  box-shadow: 0 0 6px rgba(0, 255, 102, 0.9);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* Metrics */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  font-size: 11px;
}

.metric {
  border: 1px solid rgba(0, 255, 102, 0.18);
  border-radius: 4px;
  padding: 4px 6px;
}

.metric-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9px;
  margin-bottom: 2px;
}

.metric-value {
  color: var(--fg-soft);
}

.metric-bar {
  margin-top: 3px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 255, 102, 0.12);
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--fg));
  width: 42%;
}

/* Activity log */

.activity-log {
  font-size: 11px;
  line-height: 1.35;
}

.activity-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.activity-left {
  color: var(--fg-soft);
}

.activity-right {
  color: var(--muted);
  text-align: right;
}

/* Responsive */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }
}
