/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.copilot-message-body {
  line-height: 1.5;
  overflow-x: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copilot-message-body > :first-child {
  margin-top: 0;
}

.copilot-message-body > :last-child {
  margin-bottom: 0;
}

.copilot-message-body p {
  margin: 0.5em 0;
}

.copilot-message-body ul,
.copilot-message-body ol {
  margin: 0.5em 0;
  padding-left: 1.25rem;
}

.copilot-message-body li {
  margin: 0.15em 0;
}

.copilot-message-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5em 0;
  font-size: 0.75rem;
}

.copilot-message-body th,
.copilot-message-body td {
  border: 1px solid #e5e7eb;
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.copilot-message-body th {
  background: #f3f4f6;
  font-weight: 600;
}

.copilot-message-body code {
  background: #f3f4f6;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  font-size: 0.85em;
}

.copilot-message-body pre {
  overflow-x: auto;
  background: #f3f4f6;
  padding: 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
}

.copilot-message-body pre code {
  background: transparent;
  padding: 0;
}

.copilot-message-body h1,
.copilot-message-body h2,
.copilot-message-body h3,
.copilot-message-body h4 {
  font-weight: 600;
  margin: 0.75em 0 0.35em;
}

.copilot-message-body h1 { font-size: 1rem; }
.copilot-message-body h2 { font-size: 0.95rem; }
.copilot-message-body h3 { font-size: 0.9rem; }
.copilot-message-body h4 { font-size: 0.85rem; }

.copilot-message-body a {
  color: #0369a1;
  text-decoration: underline;
}

.copilot-message-body blockquote {
  border-left: 3px solid #e5e7eb;
  margin: 0.5em 0;
  padding-left: 0.75rem;
  color: #4b5563;
}
