/* Custom styles for Agent Library Hub */
.loader {
  border: 4px solid rgba(0,0,0,0.1);
  border-left-color: #3b82f6; /* blue-500 */
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.markdown-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.markdown-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.markdown-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

.markdown-content p {
  margin-bottom: 1rem;
}

.markdown-content ul, .markdown-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.markdown-content ul {
  list-style-type: disc;
}

.markdown-content ol {
  list-style-type: decimal;
}

.markdown-content pre, .markdown-content code {
  background-color: #f1f5f9;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-family: monospace;
}

.markdown-content pre {
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

/* Tab styling */
.tab-button.active {
  border-color: #2563eb;
  color: #2563eb;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Chat styling */
.chat-message {
  opacity: 1;
  transition: opacity 0.3s;
}

.chat-message.loading {
  opacity: 0.7;
}

.agent-message .message-content {
  padding: 1rem;
  color: white;
  background-color: #2a2f3c;
  border-radius: 0.5rem;
}

.user-message .message-content {
  padding: 1rem;
  color: white;
  background-color: #3a3f4c;
  border-radius: 0.5rem;
}

/* Chat message code blocks */
.message-content pre {
  color: white;
  background-color: #1e1e2e;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  font-family: monospace;
}

.message-content code {
  color: white;
  background-color: #1e1e2e;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-family: monospace;
}

/* Scrollbar styling for chat */
.chat-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.chat-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.chat-scrollbar::-webkit-scrollbar-thumb {
  background-color: #4b5563;
  border-radius: 20px;
}

/* Settings modal animation */
.modal-enter {
  opacity: 0;
  transform: scale(0.95);
}

.modal-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 300ms, transform 300ms;
}

.modal-exit {
  opacity: 1;
  transform: scale(1);
}

.modal-exit-active {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 300ms, transform 300ms;
}

/* Chat history item hover/active states */
.chat-history-item {
  transition: all 0.2s ease;
}

.chat-history-item.active {
  background-color: #3b82f6;
}

/* Message typing animation */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #2a2f3c;
  border-radius: 15px;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  margin: 0 2px;
  background-color: #9ca3af;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% { 
    transform: scale(0);
  } 
  40% { 
    transform: scale(1);
  }
}

/* Code syntax highlighting (dark theme) */
.hljs {
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  background: #1e1e2e;
  color: #e2e8f0;
}

.hljs-keyword,
.hljs-selector-tag {
  color: #ff7b72;
}

.hljs-built_in,
.hljs-name {
  color: #79c0ff;
}

.hljs-tag {
  color: #7ee787;
}

.hljs-string,
.hljs-title,
.hljs-section,
.hljs-attribute,
.hljs-literal,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type {
  color: #a5d6ff;
}

.hljs-variable,
.hljs-bullet,
.hljs-meta {
  color: #9ecbff;
}

.hljs-title.function_ {
  color: #d2a8ff;
}

.hljs-comment,
.hljs-quote,
.hljs-deletion {
  color: #8b949e;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-title,
.hljs-section,
.hljs-doctag,
.hljs-type,
.hljs-name,
.hljs-strong {
  font-weight: bold;
}

.hljs-emphasis {
  font-style: italic;
}
.markdown-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }

.markdown-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.markdown-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

.markdown-content p {
  margin-bottom: 1rem;
}

.markdown-content ul, .markdown-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.markdown-content ul {
  list-style-type: disc;
}

.markdown-content ol {
  list-style-type: decimal;
}

.markdown-content pre, .markdown-content code {
  background-color: #f1f5f9;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-family: monospace;
}

.markdown-content pre {
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

/* Tab styling */
.tab-button.active {
  border-color: #2563eb;
  color: #2563eb;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}
/* Loader estilo simples */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3490dc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3490dc;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.transition-opacity {
  transition: opacity 0.3s;
}
