/* ======================================================
   TamilAI Code Block Theme V2
   SSL Technology
====================================================== */
.message-content pre {
  background: #1e1e1e;
  color: #f5f5f5;
  border-radius: 10px;
  border: 1px solid #3a3a3a;
  padding: 16px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
  max-height: 450px;
  overflow-x: auto;
  overflow-y: auto;
  white-space: pre;
  scrollbar-width: thin;
}
.message-content code,
.message-content pre,
.message-content pre code {
  font-family:
    "Cascadia Code", "JetBrains Mono", "Fira Code", "Consolas", "Courier New",
    monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.message-content pre::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.message-content pre::-webkit-scrollbar-track {
  background: #2b2b2b;
}
.message-content pre::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 10px;
}
.message-content pre::-webkit-scrollbar-thumb:hover {
  background: #888;
}
.message-content :not(pre) > code {
  background: #ececec;
  color: #222;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
  margin: 18px 0 10px;
  font-weight: 700;
}
.message-content p {
  margin: 10px 0;
  line-height: 1.7;
}
.message-content ul,
.message-content ol {
  margin: 10px 0 10px 24px;
}
.message-content blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 4px solid #999;
  background: #f5f5f5;
  color: #444;
  border-radius: 6px;
}
.message-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.message-content th,
.message-content td {
  border: 1px solid #d0d0d0;
  padding: 10px;
}
.message-content th {
  background: #efefef;
  font-weight: 600;
}
.tai-copy-btn.saved {
  background: #18b566;
  color: var(--text);
  cursor: default;
}
