/* slim scrollbars in dark UI */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* console event entry styling */
.evt {
  border-left: 2px solid rgba(255,255,255,0.06);
  padding: 4px 0 4px 10px;
}
.evt-thinking { border-color: rgba(168,85,247,0.5); color: #c4b5fd; opacity: 0.85; }
.evt-text     { border-color: rgba(34,211,238,0.5); color: #a5f3fc; }
.evt-tool     { border-color: rgba(250,204,21,0.6); color: #fef08a; }
.evt-result   { border-color: rgba(74,222,128,0.4); color: #bbf7d0; opacity: 0.9; }
.evt-file     { border-color: rgba(244,114,182,0.5); color: #f9a8d4; }
.evt-screen   { border-color: rgba(96,165,250,0.5); color: #bfdbfe; }
.evt-info     { border-color: rgba(255,255,255,0.1); color: #a1a1aa; }
.evt-error    { border-color: rgba(248,113,113,0.7); color: #fecaca; background: rgba(220,38,38,0.05); }
.evt-final    { border-color: rgba(34,197,94,0.8); color: #86efac; background: rgba(34,197,94,0.05); padding: 8px 10px; border-radius: 6px; }

.thinking-blob {
  display: inline;
  white-space: pre-wrap;
}

/* mobile viewport iframe */
.vp-mobile { width: 375px !important; height: 100% !important; max-width: 375px !important; }
.vp-desktop { width: 100% !important; max-width: 1280px !important; }

/* checklist statuses */
.task-todo  { color: #71717a; }
.task-doing { color: #facc15; }
.task-done  { color: #86efac; text-decoration: line-through; opacity: 0.7; }

/* ---- pretty tool cards in the agent console ---- */
.tool-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.tool-head strong { color: #fef08a; }
.tool-path {
  color: #f9a8d4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  background: rgba(244,114,182,0.08);
  padding: 1px 6px;
  border-radius: 4px;
}
.tool-meta { color: #a1a1aa; font-size: 10px; opacity: 0.65; font-family: 'JetBrains Mono', monospace; }
.tool-query { color: #bfdbfe; font-style: italic; padding-left: 18px; padding-top: 4px; font-size: 11px; }
.tool-summary { color: #d4d4d8; padding-left: 18px; padding-top: 4px; font-size: 11px; line-height: 1.4; }

.code-block {
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.45);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow-y: auto;
  color: #e4e4e7;
}
.code-block .more { color: #71717a; font-style: italic; }

.diff-block {
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.45);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  line-height: 1.55;
}
.diff-old { color: #fca5a5; white-space: pre-wrap; word-break: break-word; }
.diff-new { color: #86efac; white-space: pre-wrap; word-break: break-word; margin-top: 2px; }

.plan-inline {
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.6;
}
.plan-inline > div { padding: 1px 0; }

.checklist-inline { margin-top: 6px; padding-left: 18px; font-size: 11px; }
.check-pass { color: #86efac; }
.check-fail { color: #fca5a5; }

/* streaming tool indicator (legado, mantido caso volte) */
.stream-pulse {
  animation: pulse-fade 1.2s ease-in-out infinite;
  font-family: 'JetBrains Mono', monospace;
}
.evt.streaming { border-left-color: rgba(250, 204, 21, 0.9); }
.evt.streaming .code-block {
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.05);
}
@keyframes pulse-fade {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* tool em execução: borda âmbar pulsando + spinner */
.evt.tool-running {
  border-left-color: rgba(250, 204, 21, 0.9);
  background: rgba(250, 204, 21, 0.04);
  animation: pulse-fade 1.4s ease-in-out infinite;
}
.tool-running-label {
  color: rgba(253, 230, 138, 0.85);
  font-size: 11px;
  margin-left: 4px;
}
.tool-spinner {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: auto;
  border: 2px solid rgba(250, 204, 21, 0.25);
  border-top-color: rgba(250, 204, 21, 0.9);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
