/* Rosho Foundation Markdown Styling v06 - Enhanced from 055n7 */

#response-output {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
  color: #333333;
  padding: 1.5em;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-height: 60px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Streaming animation */
#response-output.streaming {
  border-left: 4px solid #10b981;
  animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { border-left-color: #10b981; }
  to { border-left-color: #059669; }
}

#response-output h1, #response-output h2, #response-output h3 {
  font-weight: 700;
  color: #2563eb;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}

#response-output h1 { font-size: 1.8em; }
#response-output h2 { font-size: 1.5em; }
#response-output h3 { font-size: 1.2em; }

#response-output p {
  margin-bottom: 1.2em;
  margin-top: 0;
  line-height: 1.8;
}

/* Fix for text that comes without proper paragraph tags */
#response-output {
  text-align: left;
}

#response-output br {
  line-height: 2;
  margin: 0.5em 0;
}

#response-output ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

#response-output ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

#response-output li {
  margin-bottom: 0.5em;
}

#response-output strong {
  color: #059669;
  font-weight: bold;
}

#response-output em {
  font-style: italic;
  color: #6b7280;
}

#response-output blockquote {
  border-left: 4px solid #10b981;
  padding-left: 1em;
  color: #4b5563;
  font-style: italic;
  margin: 1em 0;
  background: #f9fafb;
  padding: 1em;
  border-radius: 6px;
}

#response-output code {
  background-color: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

/* Enhanced styling for real-time rendered content */
.bullet-point {
  margin: 0.5em 0;
  padding-left: 1em;
  line-height: 1.6;
}

.numbered-point {
  margin: 0.5em 0;
  padding-left: 1em;
  line-height: 1.6;
  font-weight: 500;
}

/* Better paragraph spacing for real-time content */
#response-output p {
  margin-bottom: 1.2em;
  margin-top: 0;
  line-height: 1.8;
}

/* Ensure proper spacing between sections */
#response-output h1, #response-output h2, #response-output h3 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}
