/* HTML Renderer Styles - Matching Markdown Styling */

.html-renderer {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #24292f;
}

.html-renderer-light {
  color: #24292f;
}

.html-renderer-dark {
  color: #f6f8fa;
}

/* List styling */
.html-renderer ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
  list-style-type: disc;
}

.html-renderer ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
  list-style-type: decimal;
}

.html-renderer li {
  margin: 0.25em 0;
  line-height: 1.6;
}

/* Paragraph spacing */
.html-renderer p {
  margin: 0.75em 0;
  line-height: 1.6;
}

/* Headings */
.html-renderer h1,
.html-renderer h2,
.html-renderer h3,
.html-renderer h4,
.html-renderer h5,
.html-renderer h6 {
  margin: 1em 0 0.5em 0;
  font-weight: 600;
  line-height: 1.25;
}

.html-renderer h1 {
  font-size: 1.5em;
  border-bottom: 1px solid #d0d7de;
  padding-bottom: 0.3em;
}

.html-renderer h2 {
  font-size: 1.25em;
  border-bottom: 1px solid #d0d7de;
  padding-bottom: 0.3em;
}

.html-renderer h3 {
  font-size: 1.125em;
}

.html-renderer h4 {
  font-size: 1em;
}

.html-renderer h5 {
  font-size: 0.875em;
}

.html-renderer h6 {
  font-size: 0.85em;
  color: #656d76;
}

/* Strong and emphasis */
.html-renderer strong,
.html-renderer b {
  font-weight: 600;
}

.html-renderer em,
.html-renderer i {
  font-style: italic;
}

/* Links */
.html-renderer a {
  color: #0969da;
  text-decoration: none;
}

.html-renderer a:hover {
  text-decoration: underline;
}

/* Code */
.html-renderer code {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: rgba(175, 184, 193, 0.2);
  border-radius: 6px;
  font-family:
    ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

.html-renderer pre {
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f6f8fa;
  border-radius: 6px;
  border: 1px solid #d0d7de;
}

.html-renderer pre code {
  padding: 0;
  margin: 0;
  background-color: transparent;
  border: 0;
}

/* Blockquotes */
.html-renderer blockquote {
  padding: 0 1em;
  color: #656d76;
  border-left: 0.25em solid #d0d7de;
  margin: 0.5em 0;
}

/* Horizontal rules */
.html-renderer hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #d0d7de;
  border: 0;
}

/* Background context specific styling */
.html-renderer-user {
  background-color: #f6f8fa;
  border-radius: 8px;
}

.html-renderer-agent {
}

.html-renderer-default {
  background-color: transparent;
}

/* Option Button Styling */
.options-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.option-button {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}
.option-button:hover {
  background-color: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.option-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.option-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Dark theme button styling */
.html-renderer-dark .option-button {
  background: linear-gradient(135deg, #4c63d2 0%, #5a3d7a 100%);
  color: #f6f8fa;
}

.html-renderer-dark .option-button:hover {
  background: linear-gradient(135deg, #3d52b8 0%, #4a3266 100%);
}

/* Disabled button styling */
.button-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background-color: #f3f4f6 !important;
  color: #9ca3af !important;
  border-color: #e5e7eb !important;
  transform: none !important;
  box-shadow: none !important;
}

.button-disabled:hover {
  background-color: #f3f4f6 !important;
  transform: none !important;
  box-shadow: none !important;
}

.button-disabled:active {
  transform: none !important;
  box-shadow: none !important;
}

.button-disabled:focus {
  box-shadow: none !important;
}

/* Dark theme disabled button styling */
.html-renderer-dark .button-disabled {
  background-color: #374151 !important;
  color: #6b7280 !important;
  border-color: #4b5563 !important;
}

.html-renderer-dark .button-disabled:hover {
  background-color: #374151 !important;
}
