/* ============================================================================
   DEMO BOX 1 - BLOOMBERG DARK MODE
   Engineered Intelligence Feed
   ============================================================================ */

:root {
  --color-bg: #0a0a0a;
  --color-card: #1a1a1a;
  --color-accent: #ff6600;
  --color-text: #ffffff;
  --color-text-dim: #999999;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Main Container */
.demo-box-content {
  font-family: var(--font-mono);
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  box-sizing: border-box;
  overflow: hidden;
  color: var(--color-text);
}

/* ============================================================================
   LOG ENTRIES
   ============================================================================ */

/* Base Entry */
.log-entry {
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
  position: relative;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Labels (USER, THINKING, TOOL) */
.log-label {
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  font-family: var(--font-mono); /* Headings keep mono */
}

/* ============================================================================
   SPECIFIC STATES
   ============================================================================ */

/* 1. User Query */
.user-query {
  border-bottom: 1px solid #333;
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.user-query .log-label { color: var(--color-accent); }
.user-query p { 
  margin: 0; 
  font-size: 16px; 
  font-family: var(--font-sans); /* Default text font */
  color: #ffffff;
}


/* 2. Thinking (Agent Thought Process) */
.thinking .log-label { color: #ffffff; }
.thinking pre {
  border-left: 2px solid #666666; 
  color: #ffffff;
  font-family: var(--font-sans); /* Default text font */
  background: transparent;
  border: none;
  border-left: 2px solid #666666; /* Keep indicator */
  padding: 0 0 0 12px; /* Indent only */
  white-space: pre-wrap;
}

/* 3. Tool Calls (System Action) */
.toolCall .log-label { color: #0088ff; }
.toolCall pre {
  border-left: 2px solid #0088ff;
  background: #0d1f2e; /* Very subtle blue tint */
  color: #aaddff;
  font-family: var(--font-mono); /* Keep code font */
}

/* 4. Tool Results (Data Return) */
.toolResult .log-label { color: #00cc88; }
.toolResult pre {
  border-left: 2px solid #00cc88;
  background: #0d2e20; /* Very subtle green tint */
  color: #aaffdd;
  font-family: var(--font-mono); /* Keep code font */
}

/* Evidence Blocks (Pre) - Base Styles */
pre {
  font-size: 14px;
  background: #111;
  border: 1px solid #333;
  border-radius: 2px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  color: #ccc;
  margin: 0;
}

/* ============================================================================
   FINAL REPORT
   ============================================================================ */

.final-report {
  background: #151515;
  border: 1px solid #333;
  border-top: 2px solid var(--color-accent);
  border-radius: 0; /* Hard edges */
  padding: 24px;
  margin-top: 16px;
  flex-shrink: 0;
  max-height: 50%; /* Adjusted to ensure thinking logs stay visible */
  overflow-y: auto;
}

.final-report h3 { 
  font-size: 16px; 
  font-weight: 700; 
  color: var(--color-text); 
  margin: 0 0 16px 0; 
  text-transform: uppercase; 
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}

.final-report p { 
  font-size: 15px; 
  color: var(--color-text-dim); 
  line-height: 1.6; 
  margin-bottom: 12px;
  font-family: var(--font-sans);
}

.final-report ul { 
  list-style: none; 
  padding-left: 0; 
  margin-top: 16px; 
}

.final-report li { 
  position: relative; 
  padding-left: 16px; 
  margin-bottom: 12px; 
  font-size: 15px; 
  color: #ddd;
  font-family: var(--font-sans);
}

.final-report li::before { 
  content: '>'; 
  color: var(--color-accent); 
  position: absolute; 
  left: 0; 
  font-weight: bold;
}

.final-report strong {
  color: #fff;
}

/* Draft Email Style */
.email-draft {
  background: #000;
  border: 1px solid #333;
  padding: 16px;
  font-family: var(--font-sans); /* Keep clean sans-serif */
  font-size: 15px;
  color: #eee;
  margin-top: 16px;
}

/* ============================================================================
   SCROLLING & LAYOUT
   ============================================================================ */

/* Log List Container */
.log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
  border-left: 1px solid #222; /* Timeline line */
  padding-left: 4px;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* Typing cursor */
.typing::after {
  content: '█';
  animation: blink 1s step-end infinite;
  color: var(--color-accent);
  margin-left: 4px;
}
@keyframes blink { 50% { opacity: 0; } }
