/* AgentDock Global Styles */

.tab-pane {
  display: none !important;
}

.tab-pane.active {
  display: flex !important;
}

.nav-btn.active {
  color: #818cf8 !important; /* indigo-400 */
  background-color: rgba(99, 102, 241, 0.1) !important;
}

.agent-chip.active {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* Chat Message Bubbles */
.message-bubble {
  max-width: 85%;
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  word-break: break-word;
}

.message-bubble.user {
  background-color: #312e81; /* indigo-900 */
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #e0e7ff;
  align-self: flex-end;
}

.message-bubble.agent {
  background-color: #0f172a; /* slate-900 */
  border: 1px solid #1e293b; /* slate-800 */
  color: #f1f5f9;
  align-self: flex-start;
  width: 100%;
  max-width: 95%;
}

/* Markdown Rendering Inside Agent Messages */
.message-bubble.agent p {
  margin-bottom: 0.75rem;
}
.message-bubble.agent p:last-child {
  margin-bottom: 0;
}

.message-bubble.agent pre {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  overflow-x: auto;
  font-size: 0.75rem;
}

.message-bubble.agent code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.message-bubble.agent ul, .message-bubble.agent ol {
  margin: 0.5rem 0 0.5rem 1.25rem;
}

.message-bubble.agent ul {
  list-style-type: disc;
}

.message-bubble.agent ol {
  list-style-type: decimal;
}

.message-bubble.agent h1, .message-bubble.agent h2, .message-bubble.agent h3 {
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #f8fafc;
}

/* Tool execution pills */
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0.25rem 0;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* File Viewer Independent Scroll Container */
#fileViewerContent {
  height: calc(100% - 2.5rem);
  scrollbar-gutter: stable;
}

#fileViewerContent pre,
#fileViewerContent code {
  white-space: pre !important;
  word-break: normal !important;
  word-wrap: normal !important;
}
