/*
 * API documentation building blocks.
 *
 * Keep endpoint partials semantic and compose these classes instead of adding
 * page-specific inline styles or depending on a freshly compiled Tailwind
 * utility. This stylesheet is scoped to .api-docs.
 */
.api-docs {
  overflow-x: clip;
}

.api-docs .prose :where(code):not(:where([class~=not-prose], [class~=not-prose] *))::before,
.api-docs .prose :where(code):not(:where([class~=not-prose], [class~=not-prose] *))::after {
  content: "";
}

.api-docs__sidebar {
  display: none;
}

.api-docs__content {
  min-width: 0;
  flex: 1 1 auto;
}

.api-docs__layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-block: 1.5rem;
}

.api-docs__column {
  min-width: 0;
  flex: 1 1 0%;
}

.api-docs__example-column {
  margin-top: 2.5rem;
}

.api-docs__card,
.api-docs__request-card,
.api-docs__auth-example {
  max-width: 100%;
  overflow: hidden;
}

.api-docs__card {
  margin-top: 1rem;
  border-radius: 1rem;
  background: #18181b;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.api-docs__card-header {
  display: flex;
  min-height: 3rem;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #3f3f46;
  background: #27272a;
  padding: 0.75rem 1rem 0.5rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.api-docs__request,
.api-docs__status {
  background: #18181b;
  padding-inline: 1rem;
  color: #a1a1aa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
}

.api-docs__request {
  padding-top: 0.75rem;
  padding-bottom: 0.25rem;
}

.api-docs__status {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.api-docs__request code,
.api-docs__request-card code,
.api-docs__auth-example code {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  background: transparent;
  padding: 0;
  font: inherit;
}

.api-docs__request code {
  color: #34d399;
}

.api-docs__response {
  max-width: 100%;
  max-height: 24rem;
  overflow-y: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  border-radius: 0 0 1rem 1rem;
  background: #18181b;
  padding: 1rem;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.625;
}

.api-docs__response code {
  white-space: inherit;
  background: transparent;
  padding: 0;
  font: inherit;
}

.api-docs__request-card {
  border-radius: 0.5rem;
  background: #18181b;
  padding: 0.75rem 1rem;
  color: #f4f4f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
}

.api-docs__method {
  margin-right: 0.5rem;
  color: #34d399;
  font-weight: 700;
}

.api-docs__auth-example {
  margin-top: 1rem;
  border: 1px solid #3f3f46;
  border-radius: 0.75rem;
  background: #18181b;
}

.api-docs__auth-title {
  border-bottom: 1px solid #3f3f46;
  background: #27272a;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.api-docs__recommended-badge {
  display: inline-block;
  margin-left: 0.5rem;
  border-radius: 9999px;
  background: #065f46;
  padding: 0.125rem 0.5rem;
  color: #d1fae5;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.api-docs__auth-note {
  margin-top: 0.75rem;
  border-left: 3px solid #f59e0b;
  padding-left: 0.75rem;
  color: #92400e;
  font-size: 0.875rem;
  line-height: 1.5;
}

.api-docs__auth-command {
  padding: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  background: transparent;
  color: #f4f4f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
}

.api-docs__auth-command code {
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
}

.api-docs__endpoint-list {
  margin: 1.5rem 0;
  border-top: 1px solid #e4e4e7;
}

.api-docs__endpoint {
  padding: 1rem 0;
  border-bottom: 1px solid #e4e4e7;
}

.api-docs__endpoint-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  margin: 0;
  color: #18181b;
  font-size: 0.9375rem;
  font-weight: 600;
}

.api-docs__endpoint-method {
  border-radius: 0.25rem;
  background: #ecfdf5;
  padding: 0.125rem 0.375rem;
  color: #047857;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
}

.api-docs__endpoint-path {
  overflow-wrap: anywhere;
  word-break: break-word;
  background: #f4f4f5;
  padding: 0.125rem 0.375rem;
  color: #27272a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8125rem;
  font-weight: 400;
}

.api-docs__endpoint p {
  margin: 0.5rem 0 0;
  color: #52525b;
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .api-docs__sidebar {
    display: block;
  }

  .api-docs__content {
    margin-left: 1rem;
  }
}

@media (min-width: 1024px) {
  .api-docs__content {
    margin-left: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .api-docs__layout {
    flex-direction: row;
  }

  .api-docs__example-column {
    margin-top: 0;
  }
}
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Keep Markdown tables within assistant messages, wrapping long content in each cell. */
.chat-markdown {
  min-width: 0;
}

.chat-markdown table {
  width: 100%;
  table-layout: fixed;
}

.chat-markdown th,
.chat-markdown td {
  overflow-wrap: anywhere;
}

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
/*
 * 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.
 *


 */
