/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 */

/* Fix for Tailwind v4 reset that makes input backgrounds transparent */
input[type="submit"],
input[type="button"],
button {
  background-color: revert-layer;
}

input[type="submit"].bg-emerald-600,
input[type="button"].bg-emerald-600,
button.bg-emerald-600 {
  background-color: var(--color-emerald-600);
}

input[type="submit"].bg-emerald-700,
input[type="button"].bg-emerald-700,
button.bg-emerald-700 {
  background-color: var(--color-emerald-700);
}

input[type="submit"].bg-red-600,
input[type="button"].bg-red-600,
button.bg-red-600 {
  background-color: var(--color-red-600);
}

/* Markdown rendered inside AI chat assistant bubbles (Tailwind preflight resets
   these, so restore basic formatting). */
.chat-markdown > :first-child { margin-top: 0; }
.chat-markdown > :last-child { margin-bottom: 0; }
.chat-markdown p { margin: 0.5rem 0; }
.chat-markdown strong { font-weight: 700; }
.chat-markdown em { font-style: italic; }
.chat-markdown h1,
.chat-markdown h2,
.chat-markdown h3 { font-weight: 700; margin: 0.75rem 0 0.35rem; line-height: 1.25; }
.chat-markdown h1 { font-size: 1.1rem; }
.chat-markdown h2 { font-size: 1.05rem; }
.chat-markdown h3 { font-size: 1rem; }
.chat-markdown ul { list-style: disc; padding-left: 1.25rem; margin: 0.4rem 0; }
.chat-markdown ol { list-style: decimal; padding-left: 1.25rem; margin: 0.4rem 0; }
.chat-markdown li { margin: 0.15rem 0; }
.chat-markdown a { text-decoration: underline; }
.chat-markdown code { font-family: ui-monospace, monospace; font-size: 0.85em;
  background: rgba(0,0,0,0.06); padding: 0.05rem 0.25rem; border-radius: 0.25rem; }
.chat-markdown pre { background: rgba(0,0,0,0.06); padding: 0.5rem; border-radius: 0.375rem;
  overflow-x: auto; margin: 0.5rem 0; }
.chat-markdown pre code { background: none; padding: 0; }
.chat-markdown table { border-collapse: collapse; margin: 0.5rem 0; }
.chat-markdown th, .chat-markdown td { border: 1px solid rgba(0,0,0,0.15); padding: 0.25rem 0.5rem; }
