/* Jarvis Chat UI Styles */
.jarvis-chat {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.chat-window {
  display: flex;
  flex-direction: column;
  height: 560px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.user-msg {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
}

.msg-bubble {
  max-width: 75%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem 1rem;
}

.user-msg .msg-bubble {
  background: var(--accent-dim);
  border-color: var(--border-accent);
}

.msg-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
}

.msg-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.thinking {
  color: var(--text-secondary);
  font-style: italic;
}

.chat-input-area {
  border-top: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  background: var(--bg-primary);
}

#chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 14px;
  padding: 0.75rem 1rem;
  resize: none;
  line-height: 1.5;
  transition: border-color 0.2s;
}

#chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

#chat-input::placeholder { color: var(--text-muted); }

#chat-send {
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0 1.25rem;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

#chat-send:hover { opacity: 0.85; }
#chat-send:active { transform: scale(0.98); }
