.ai-assistant-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

/* Enhanced AI Assistant Toggle Button */
.ai-assistant-toggle {
  min-width: 54px;
  height: 54px;
  border-radius: 27px;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(67, 56, 202, 0.5), 0 0 0 3px rgba(99, 102, 241, 0.3);
  border: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  animation: pulse-glow 2s infinite alternate;
  padding: 0;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 8px 24px rgba(67, 56, 202, 0.5), 0 0 0 3px rgba(99, 102, 241, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 12px 28px rgba(67, 56, 202, 0.8), 0 0 0 5px rgba(99, 102, 241, 0.5);
    transform: scale(1.05);
  }
}

.ai-toggle-icon {
  position: relative;
  z-index: 2;
  height: 28px;
  width: 28px;
  animation: bounce 1s infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-toggle-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  display: none;
}

/* Add a subtle shimmer effect to the text */
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.ai-toggle-text {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 1) 50%, 
    rgba(255, 255, 255, 0.9) 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s infinite linear;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-3px);
  }
}

.ai-assistant-toggle:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 16px 32px rgba(67, 56, 202, 0.6), 0 0 0 6px rgba(99, 102, 241, 0.6);
  animation: none;
}

.ai-assistant-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    rgba(255, 255, 255, 0) 100%);
  transition: left 0.6s;
  z-index: 1;
}

.ai-assistant-toggle:hover::before {
  left: 100%;
}

/* Add a "pulse" ring around the button */
.ai-assistant-toggle::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(99, 102, 241, 0.6);
  opacity: 0;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

/* Brain icon animations */
.brain-circle {
  stroke: #fff;
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: draw-circle 1.5s forwards;
}

.brain-detail {
  stroke: #fff;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw-details 1.5s 0.3s forwards;
}

.brain-wave {
  stroke: #fff;
  stroke-dasharray: 15;
  stroke-dashoffset: 15;
  animation: draw-details 1.5s 0.6s forwards, pulse-wave 2s 2s infinite;
}

@keyframes draw-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-details {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse-wave {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.ai-assistant-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  color: #F8F8F2;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(5px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.ai-assistant-panel.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.ai-assistant-header {
  background: linear-gradient(90deg, #1E1E38 0%, #2D1E69 100%);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.ai-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-icon-small {
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: all 0.2s;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.ai-assistant-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
  max-height: calc(80vh - 60px);
  position: relative;
}

.ai-assistant-placeholder {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 32px 0;
  font-style: italic;
}

/* Loading animation */
.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(99, 102, 241, 0.1);
  border-top-color: #6366F1;
  animation: spin 1s infinite ease-in-out;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* AI content styling */
.ai-context-content {
  position: relative;
}

.ai-context-content h1, 
.ai-context-content h2, 
.ai-context-content h3 {
  color: #A78BFA;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.ai-context-content h1 {
  font-size: 20px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.3);
  padding-bottom: 8px;
}

.ai-context-content h2 {
  font-size: 18px;
}

.ai-context-content h3 {
  font-size: 16px;
}

.ai-context-content p {
  margin-bottom: 16px;
}

.ai-context-content code {
  background-color: rgba(30, 30, 56, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9em;
  color: #f8f8f2;
}

/* Inline code style */
.ai-code-inline {
  background-color: rgba(30, 30, 56, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9em;
  color: #f8f8f2;
  white-space: pre-wrap;
}

/* Multi-line code block style */
.ai-code-block {
  background-color: rgba(30, 30, 56, 0.8);
  border-radius: 6px;
  margin: 16px 0;
  padding: 0;
  border: 1px solid rgba(99, 102, 241, 0.2);
  max-width: 100%;
  overflow-x: auto;
  position: relative;
}

.ai-code-block code {
  display: block;
  padding: 12px 16px;
  overflow-x: auto;
  line-height: 1.6;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9em;
  color: #f8f8f2;
  background: transparent;
  border-radius: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-code-block code br {
  display: block; /* Ensure line breaks work in code blocks */
  content: "";
  margin-bottom: 0.5em;
}

/* Syntax highlighting for various languages */
.ai-code-block .language-ruby .keyword,
.ai-code-block .language-js .keyword,
.ai-code-block .language-javascript .keyword,
.ai-code-block .language-typescript .keyword {
  color: #ff79c6;
}

.ai-code-block .language-ruby .string,
.ai-code-block .language-js .string,
.ai-code-block .language-javascript .string,
.ai-code-block .language-typescript .string {
  color: #f1fa8c;
}

.ai-code-block .language-ruby .constant,
.ai-code-block .language-js .constant,
.ai-code-block .language-javascript .constant,
.ai-code-block .language-typescript .constant {
  color: #bd93f9;
}

/* Properly style lists */
.ai-list {
  margin: 12px 0 12px 16px;
  padding-left: 16px;
  list-style-type: disc;
}

.ai-list-item {
  margin: 6px 0;
  padding-left: 4px;
}

/* Add ordered list styles */
.ai-ordered-list {
  margin: 12px 0 12px 16px;
  padding-left: 16px;
  list-style-type: decimal;
}

/* Headings with different sizes for different header levels */
.ai-heading {
  font-weight: 600;
  color: #a78bfa;
  margin-top: 0.8em;
  margin-bottom: 0.4em;
  line-height: 1.3;
}

.ai-h1 {
  font-size: 1.6em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid rgba(167, 139, 250, 0.3);
  margin-top: 1.5em;
}

.ai-h2 {
  font-size: 1.4em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid rgba(167, 139, 250, 0.2);
  margin-top: 1.2em;
}

.ai-h3 {
  font-size: 1.2em;
}

.ai-h4 {
  font-size: 1.1em;
}

.ai-h5 {
  font-size: 1em;
}

/* Bold and italic text */
.ai-bold {
  font-weight: 600;
  color: #f8fafc;
}

.ai-italic {
  font-style: italic;
  color: #cbd5e1;
}

.ai-context-content pre {
  background-color: rgba(30, 30, 56, 0.8);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.ai-context-content pre code {
  background-color: transparent;
  padding: 0;
  border: none;
  display: block;
  line-height: 1.5;
}

.ai-context-content ul, .ai-context-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.ai-context-content li {
  margin-bottom: 8px;
}

.refresh-button {
  margin-top: 24px;
  text-align: center;
}

.refresh-button button {
  background-color: rgba(99, 102, 241, 0.1);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.refresh-button button:hover {
  background-color: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
}

/* Error message styling */
.ai-error {
  background-color: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #FB7185;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-error::before {
  content: "!";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: rgba(244, 63, 94, 0.2);
  border-radius: 50%;
  color: #FB7185;
  font-weight: bold;
}

/* Fix hidden class */
.hidden {
  display: none !important;
  visibility: hidden !important;
}

/* Extra hiding class for absolute certainty */
.ai-loading-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

.ai-assistant-tabs {
  display: flex;
  background: linear-gradient(90deg, #1a1a38 0%, #23204d 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.ai-assistant-tab {
  padding: 10px 12px;
  cursor: pointer;
  flex: 1;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

/* Special styling for tab icons */
.ai-assistant-tab::before {
  content: "";
  display: block;
  height: 20px;
  width: 20px;
  margin: 0 auto 4px auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.ai-assistant-tab[data-tab="context"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
}

.ai-assistant-tab[data-tab="challenges"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2 4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21'/%3E%3C/svg%3E");
}

.ai-assistant-tab[data-tab="patterns"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E");
}

.ai-assistant-tab[data-tab="visualizations"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='9' y1='21' x2='9' y2='9'/%3E%3C/svg%3E");
}

.ai-assistant-tab.active {
  color: #fff;
  background-color: rgba(99, 102, 241, 0.1);
  border-bottom: 2px solid #6366F1;
}

.ai-assistant-tab.active::before {
  opacity: 1;
}

.ai-assistant-tab:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

/* Tab content styling */
.ai-tab-content {
  position: absolute;
  top: -9999px;
  left: -9999px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  width: 100%;
}

.ai-tab-content.active {
  position: static;
  opacity: 1;
  visibility: visible;
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Static Info Styling */
.ai-static-info {
  color: rgba(255, 255, 255, 0.9);
  padding: 15px;
  font-family: 'Inter', sans-serif;
}

.ai-static-info h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 12px;
  color: #A78BFA;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}

.ai-static-info h4 {
  font-size: 15px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #A5B4FC;
  font-weight: 500;
  font-family: 'Sora', sans-serif;
}

.ai-static-info p {
  margin-bottom: 15px;
  line-height: 1.5;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.ai-static-info ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 15px;
}

.ai-static-info li {
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
}

.ai-static-info i {
  color: #A5B4FC;
  font-size: 16px;
  flex-shrink: 0;
}

.ai-static-info a {
  color: #93C5FD;
  text-decoration: none;
  transition: color 0.2s;
}

.ai-static-info a:hover {
  text-decoration: underline;
  color: #BFDBFE;
}

/* Ensure the same styling for both Context and Challenges tabs */
.ai-tab-content[data-tab="context"] .ai-static-info,
.ai-tab-content[data-tab="challenges"] .ai-static-info {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Feedback component styles */
.ai-feedback {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  text-align: center;
}

.ai-feedback-question {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.ai-feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ai-feedback-button {
  background-color: rgba(99, 102, 241, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-feedback-button:hover {
  background-color: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
}

.ai-feedback-button.helpful {
  border-color: rgba(52, 211, 153, 0.5);
}

.ai-feedback-button.helpful:hover,
.ai-feedback-button.helpful.selected {
  background-color: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.7);
  color: rgba(52, 211, 153, 0.9);
}

.ai-feedback-button.not-helpful {
  border-color: rgba(248, 113, 113, 0.5);
}

.ai-feedback-button.not-helpful:hover,
.ai-feedback-button.not-helpful.selected {
  background-color: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.7);
  color: rgba(248, 113, 113, 0.9);
}

.ai-feedback-textarea {
  display: none;
  margin-top: 10px;
}

.ai-feedback-textarea.visible {
  display: block;
}

.ai-feedback-textarea textarea {
  width: 100%;
  padding: 8px 12px;
  background-color: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 4px;
  color: white;
  font-size: 13px;
  resize: vertical;
  min-height: 80px;
  font-family: 'Inter', sans-serif;
}

.ai-feedback-submit {
  background-color: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  margin-top: 10px;
  transition: all 0.2s;
}

.ai-feedback-submit:hover {
  background-color: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.6);
}

.ai-feedback-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-feedback-thanks {
  display: none;
  color: #A5B4FC;
  font-size: 13px;
  margin-top: 10px;
  padding: 8px;
  background-color: rgba(99, 102, 241, 0.1);
  border-radius: 4px;
}

.ai-feedback-thanks.visible {
  display: block;
}

.ai-feedback-stats {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.ai-feedback-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-feedback-stat-helpful {
  color: rgba(52, 211, 153, 0.8);
}

.ai-feedback-stat-not-helpful {
  color: rgba(248, 113, 113, 0.8);
}

/* Add spacing to key file stars in AI assistant panel */
.ai-context-content .key-file-star,
.ai-tab-content .key-file-star {
  margin-left: 0.5rem;
  margin-right: 0.75rem;
  padding-left: 0.25rem;
  display: inline-block;
}

/* Ensure list items with stars have proper padding */
.ai-context-content ul li,
.ai-tab-content ul li,
.ai-context-content ol li,
.ai-tab-content ol li {
  padding-left: 0.25rem;
  margin-left: 0.25rem;
}

.ai-context-content .key-file-item,
.ai-tab-content .key-file-item {
  padding-left: 0.5rem;
  border-radius: 4px;
}

/* Loading placeholder styling for better UX */
.ai-loading-placeholder {
  padding: 10px 0;
  animation: pulse 1.5s infinite;
}

.placeholder-line {
  height: 12px;
  margin-bottom: 12px;
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(99, 102, 241, 0.3) 50%,
    rgba(99, 102, 241, 0.2) 100%
  );
  border-radius: 4px;
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
}

.placeholder-paragraph {
  margin-bottom: 16px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Improved error state styling */
.ai-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
  color: #FB7185;
}

.ai-error-state i {
  font-size: 24px;
  margin-bottom: 16px;
  color: #F43F5E;
}

.ai-error-state p {
  margin-bottom: 16px;
  font-size: 14px;
}

.retry-button {
  background-color: rgba(244, 63, 94, 0.1);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.retry-button:hover {
  background-color: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.5);
}

/* Properly style ordered lists */
.ai-ordered-list {
  margin: 12px 0 12px 16px;
  padding-left: 16px;
  list-style-type: decimal;
}

/* Custom Scrollbar for AI Assistant Content */
.ai-assistant-content::-webkit-scrollbar {
  width: 8px; /* More slender scrollbar */
}

.ai-assistant-content::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5); /* Slightly transparent track, matching panel bg */
  border-radius: 10px;
}

.ai-assistant-content::-webkit-scrollbar-thumb {
  background-color: rgba(99, 102, 241, 0.5); /* Accent color, semi-transparent */
  border-radius: 10px;
  border: 2px solid transparent; /* Creates padding around thumb */
  background-clip: content-box; /* Ensures border doesn't overlap thumb color */
}

.ai-assistant-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(99, 102, 241, 0.8); /* Darker on hover */
}

/* For Firefox - more limited styling but better than default */
.ai-assistant-content {
  /* This rule might already exist or conflict if .ai-assistant-content is already defined. */
  /* We're adding scrollbar properties to an existing selector if possible, or ensuring it's applied. */
  scrollbar-width: thin; /* "auto" or "thin" */
  scrollbar-color: rgba(99, 102, 241, 0.5) rgba(15, 23, 42, 0.5); /* thumb and track color */
} 