.logo-half {
  height: 141px;
  object-fit: contain;
}

.conversation-textarea {
  width: 100%;
  max-width: 90%;
  resize: none;
  min-height: 80px;
  field-sizing: content;
}

.white-space-pre-wrap {
  white-space: pre-wrap;
}

.select-model-width {
  max-width: 250px;
}

#latency-data {
  font-family: var(--bs-font-monospace);
}

.strutis-logo {
  height: 1.25rem;
  width: auto;
}

.min-h-0 {
  min-height: 0;
}

.chat-bubble {
  white-space: normal;
  overflow-wrap: break-word;
}

.chat-bubble code {
  font-family: var(--bs-font-monospace);
  font-size: 0.875em;
  background-color: var(--bs-tertiary-bg);
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
}

.chat-bubble pre {
  background-color: var(--bs-tertiary-bg);
  border-radius: 0.5rem;
  padding: 0.75rem;
  overflow-x: auto;
}

.chat-bubble h1,
.chat-bubble h2,
.chat-bubble h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.chat-bubble pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.chat-bubble table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 0.5rem 0;
}

.chat-bubble th,
.chat-bubble td {
  border: 1px solid var(--bs-border-color);
  padding: 0.25rem 0.5rem;
}

.chat-bubble th {
  background-color: var(--bs-tertiary-bg);
  font-weight: 600;
}

.chat-message-user {
  display: flex;
  justify-content: flex-end;
}

.chat-message-user .chat-bubble {
  max-width: 85%;
  padding: 0.625rem 1rem;
  border-radius: 1.25rem;
  background-color: var(--bs-tertiary-bg);
}

.chat-meta {
  margin-top: 0.25rem;
}

.chat-tool summary {
  cursor: pointer;
}

.chat-tool pre {
  margin-top: 0.5rem;
  max-height: 16rem;
  overflow-y: auto;
}

.chat-progress .progress {
  --bs-progress-height: 0.25rem;
  --bs-progress-bar-bg: var(--bs-primary);
}

.chat-progress .progress-bar {
  animation: chat-progress-indeterminate 1.5s ease-in-out infinite;
}

@keyframes chat-progress-indeterminate {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}

.chat-input-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  background-color: var(--bs-body-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
}

.conversation-textarea {
  border: 0;
  box-shadow: none;
  resize: none;
  max-height: 200px;
  padding: 0.5rem 0.75rem;
  background-color: transparent;
}

.conversation-textarea:focus {
  border: 0;
  box-shadow: none;
  background-color: transparent;
}

.chat-send-btn {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.chat-window {
  height: calc(100vh - 3rem);
}

.new-conversation-layout {
  height: calc(100vh - 3rem);
}

.new-conversation-layout .system-prompt-section {
  max-height: 12rem;
}

.new-conversation-layout .chat-window {
  height: 100%;
}

.conversation-drawer-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
}

.conversation-drawer-title {
  min-width: 0;
}

.conversation-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

.conversation-drawer {
  padding: 0.5rem 0;
  background-color: var(--bs-body-bg);
  overflow-y: auto;
}

@media (max-width: 767.98px) {
  .conversation-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1045;
    width: 85vw;
    max-width: 20rem;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  body.conversation-drawer-open {
    overflow: hidden;
  }

  body.conversation-drawer-open .conversation-drawer {
    transform: none;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.15);
  }

  body.conversation-drawer-open .conversation-drawer-backdrop {
    display: block;
  }
}

@media (min-width: 768px) {
  .conversation-drawer {
    position: sticky;
    top: 0;
    height: 100vh;
  }
}
