/* Markdown content styling within chat bubbles */
.chat-bubble h1,
.chat-bubble h2,
.chat-bubble h3,
.chat-bubble h4,
.chat-bubble h5,
.chat-bubble h6 {
  font-weight: bold;
  margin: 0.5em 0 0.25em 0;
  line-height: 1.2;
}

.chat-bubble h1 {
  font-size: 1.4em;
}
.chat-bubble h2 {
  font-size: 1.3em;
}
.chat-bubble h3 {
  font-size: 1.2em;
}
.chat-bubble h4 {
  font-size: 1.1em;
}
.chat-bubble h5 {
  font-size: 1em;
}
.chat-bubble h6 {
  font-size: 0.9em;
}

.chat-bubble ul,
.chat-bubble ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.chat-bubble li {
  margin: 0.25em 0;
}

.chat-bubble p {
  margin: 0.5em 0;
}

.chat-bubble p:first-child {
  margin-top: 0;
}

.chat-bubble p:last-child {
  margin-bottom: 0;
}

.chat-bubble code {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.1em 0.3em;
  border-radius: 0.25em;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
}

.chat-bubble pre {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.5em;
  border-radius: 0.5em;
  overflow-x: auto;
  margin: 0.5em 0;
  font-size: 0.85em;
}

@media (min-width: 640px) {
  .chat-bubble pre {
    padding: 0.75em;
    font-size: 0.9em;
  }
}

.chat-bubble pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.chat-bubble blockquote {
  border-left: 3px solid rgba(0, 0, 0, 0.2);
  padding-left: 1em;
  margin: 0.5em 0;
  font-style: italic;
}

.chat-bubble table {
  border-collapse: collapse;
  margin: 0.5em 0;
  width: 100%;
}

.chat-bubble th,
.chat-bubble td {
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 0.5em;
  text-align: left;
}

.chat-bubble th {
  background-color: rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

.chat-bubble a {
  color: inherit;
  text-decoration: underline;
}

.chat-bubble a:hover {
  text-decoration: none;
}
