/* Restyled to match the chatbot design system
   (~/chatbot/src/features/home/home.css, chat/chat.css). */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0f0f0f;
  color: #e4e4e4;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: #6cb2ff;
  text-decoration: underline;
}

/* Top bar, same as the chatbot header */
.header {
  background: #1a1a1a;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header h1 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}
.header .status {
  --status-color: #4ade80;
  font-size: 12px;
  color: var(--status-color);
  display: flex;
  align-items: center;
  gap: 6px;
}
.header .status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--status-color);
  border-radius: 50%;
  display: inline-block;
}
/* Live states, driven by the /health poll in app.js */
.header .status.checking {
  --status-color: #9a9a9a;
}
.header .status.degraded {
  --status-color: #fbbf24;
}
.header .status.offline {
  --status-color: #ff6b6b;
}

/* Centered main area, same as the chatbot home page */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 32px;
}
.content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}

/* Link cards, same as the chatbot bot-cards */
.menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 480px;
}
.box-link {
  display: block;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 18px;
  padding: 20px 24px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}
.box-link:hover,
.box-link:focus-visible {
  border-color: #007aff;
  background: #2e2e2e;
}
.box-link:active {
  transform: scale(0.99);
}
.card-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}
.card-desc {
  display: block;
  font-size: 13px;
  color: #9a9a9a;
  line-height: 1.4;
}

/* Command prompt, styled like the chatbot input pill */
.prompt-line {
  width: 100%;
  max-width: 480px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 24px;
  padding: 12px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  display: flex;
  align-items: baseline;
}
.prompt {
  color: #9a9a9a;
  white-space: pre;
}

/* Invisible input that captures keystrokes (unchanged behavior) */
#command-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
}

/* Blinking block cursor, aligned to the text baseline */
.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1em;
  background-color: #e4e4e4;
  vertical-align: -0.1em;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Command feedback line, muted like the chatbot's secondary text */
.output {
  white-space: pre-wrap;
  font-size: 13px;
  color: #9a9a9a;
  max-width: 480px;
  text-align: center;
}

