/**
 * File role: the look of the chat's slash menu and start buttons (rag-ai-slash.js, VOGOLLM D-016), with the chat's
 * own tokens (rag-ai.css :root) — no colour of its own.
 *
 * @file_version 1.0.1 (25.10.2026: the empty-conversation note only once the server says the conversation is empty,
 * user; 1.0.0)
 */

/* The "Scrie un mesaj…" note: hidden while the conversation loads, shown when the server says it is empty
   (rag-ai-slash.js sets .slash-empty on the thread after rag-ai.js's "ragai:loaded") — no flash at the opening */
#thread > #empty { visibility: hidden; }
#thread.slash-empty > #empty { visibility: visible; }

/* The command list, above the message field, like the portal assistant's */
.slash-menu {
  position: absolute; left: 14px; right: 14px; bottom: 100%; margin-bottom: 6px; z-index: 30;
  max-height: 260px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0, 0, 0, .14); padding: 4px;
}
.slash-item {
  display: flex; gap: 12px; align-items: baseline; width: 100%; text-align: left; font: inherit; color: var(--fg);
  background: transparent; border: none; border-radius: 5px; padding: 7px 10px; cursor: pointer;
}
.slash-item b { flex: none; min-width: 92px; color: var(--acc); font-weight: 600; }
.slash-item span { opacity: .8; }
.slash-item.is-active, .slash-item:hover { background: var(--bg); }

/* The start buttons, in an empty conversation */
.slash-starters {
  position: absolute; left: 14px; right: 14px; bottom: 100%; margin-bottom: 8px; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.slash-start {
  font: inherit; font-weight: 600; color: var(--acc); background: var(--panel); border: 1px solid var(--line);
  border-radius: 5px; padding: 8px 14px; cursor: pointer;
}
.slash-start:hover { border-color: var(--acc); }
.slash-more span { margin-left: 4px; }
.slash-menu[hidden], .slash-starters[hidden] { display: none; }

/* On the phone the start buttons scroll on one line, the thread keeps its room */
@media (max-width: 640px) {
  .slash-starters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .slash-start { flex: none; }
}
