/* 1) Markdown */
.chat.bot .text p,
.chat.bot .text ul,
.chat.bot .text ol,
.chat.bot .text pre,
.chat.bot .text code,
.chat.bot .text blockquote {
  margin: 0 0 10px 0;
  font-size: 15px;
  line-height: 1.6;
  word-wrap: break-word;
}

/* 2) List */
.chat.bot .text ul {
  padding-left: 20px;
  list-style: disc;
}
.chat.bot .text ol {
  padding-left: 20px;
  list-style: decimal;
}

/* 3) Code inline */
.chat.bot .text code {
  background: #f0f0f0;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  white-space: pre-wrap; /* biar nggak bikin melebar */
  word-break: break-word;
}

/* 4) Pre Code */
.chat.bot .text pre {
  background: #fff;
  color: #333;
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  position: relative; /* supaya tombol copy bisa nempel */
  margin: 8px 0;
  border: 1px solid #ddd;
}
.chat.bot .text pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 14px;
  font-family: monospace;
}
.chat.bot .text pre .copy-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: #333;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}
.chat.bot .text pre .copy-btn:hover {
  background: rgba(0, 0, 0, 0.15);
}

/* 5) Blockquote */
.chat.bot .text blockquote {
  border-left: 4px solid #ccc;
  margin: 0 0 10px 0;
  padding-left: 10px;
  color: #555;
  font-style: italic;
  background: #fafafa;
  border-radius: 4px;
}

/* 6) Headings */
.chat.bot .text h1,
.chat.bot .text h2,
.chat.bot .text h3 {
  margin: 10px 0;
  font-family: 'Brockmann', sans-serif;
  font-weight: 600;
}
.chat.bot .text h1 { font-size: 20px; }
.chat.bot .text h2 { font-size: 18px; }
.chat.bot .text h3 { font-size: 16px; }

/* 7) Links */
.chat.bot .text a {
  color: #007bff;
  text-decoration: none;
  word-break: break-word;
}
.chat.bot .text a:hover {
  text-decoration: underline;
}

/* 8) Horizontal line */
.chat.bot .text hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 15px 0;
}

/* 9) Dark mode */
body.dark .chat.bot .text code { 
  background:rgba(500,500,500,0.1);
  color:#eee;
}
body.dark .chat.bot .text pre { 
  background:#0a061d;
  color:#efeef0;
  border-color: rgba(500,500,500,0.1); 
}
body.dark .chat.bot .text pre code { 
  background: #0a061d;
}
body.dark .chat.bot .text pre .copy-btn { 
  background: rgba(500,500,500,0.1);
  color:#eee;
}