/* [project]/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  color: #eef2ff;
  font-synthesis: none;
  text-rendering: optimizelegibility;
  background: #090b12;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 0 0, #58a6ff29, #0000 35%), #090b12;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.app-shell {
  grid-template-columns: 310px minmax(0, 1fr);
  height: 100vh;
  display: grid;
  overflow: hidden;
}

.sidebar {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: #0a0e19d1;
  border-right: 1px solid #94a3b824;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  display: flex;
}

.brand {
  align-items: center;
  gap: 14px;
  display: flex;
}

.brand-mark {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  border-radius: 16px;
  place-items: center;
  width: 44px;
  height: 44px;
  display: grid;
  box-shadow: 0 18px 60px #06b6d433;
}

.brand h1 {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 18px;
}

.brand p, .muted {
  color: #94a3b8;
  margin: 4px 0 0;
  font-size: 13px;
}

.new-chat, .upload-card {
  color: #eef2ff;
  text-align: left;
  background: #ffffff0f;
  border: 1px solid #94a3b82e;
  border-radius: 14px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 700;
  transition: all .16s;
  display: inline-flex;
}

.upload-card {
  background: linear-gradient(135deg, #7c3aed57, #0891b23d);
}

.new-chat:hover, .upload-card:hover, .history-item:hover, .icon-button:hover {
  background: #ffffff1a;
  transform: translateY(-1px);
}

.hidden-file {
  display: none;
}

.doc-card {
  background: #0f172a6b;
  border: 1px solid #94a3b824;
  border-radius: 18px;
  padding: 14px;
}

.doc-name {
  color: #e2e8f0;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.doc-card code {
  color: #bfdbfe;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.45;
  display: block;
}

.history-block {
  min-height: 0;
  overflow: auto;
}

.section-title {
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: .11em;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
}

.history-item {
  color: #e2e8f0;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 12px;
  gap: 5px;
  width: 100%;
  padding: 11px 10px;
  display: grid;
}

.history-item span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.history-item small {
  color: #64748b;
}

.main-panel {
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  height: 100vh;
  display: grid;
}

.topbar {
  border-bottom: 1px solid #94a3b81a;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 32px 18px;
  display: flex;
}

.topbar h2 {
  letter-spacing: -.04em;
  max-width: 860px;
  margin: 4px 0 0;
  font-size: clamp(22px, 3vw, 34px);
}

.eyebrow {
  color: #93c5fd;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.icon-button {
  color: #eef2ff;
  background: #ffffff0f;
  border: 1px solid #94a3b82e;
  border-radius: 14px;
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
}

.settings-card {
  background: #0f172ab3;
  border: 1px solid #94a3b829;
  border-radius: 18px;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 12px;
  margin: 14px 32px 0;
  padding: 16px;
  display: grid;
}

.settings-card label {
  color: #94a3b8;
  gap: 7px;
  font-size: 12px;
  display: grid;
}

.settings-card input {
  color: #eef2ff;
  background: #020617b8;
  border: 1px solid #94a3b82e;
  border-radius: 12px;
  outline: none;
  padding: 11px;
}

.checkbox-label {
  align-items: center;
  padding-bottom: 10px;
  gap: 10px !important;
  display: flex !important;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.settings-card input:focus {
  border-color: #7dd3fc9e;
  box-shadow: 0 0 0 4px #0ea5e91f;
}

.error-banner {
  color: #fecaca;
  background: #7f1d1d47;
  border: 1px solid #f8717140;
  border-radius: 14px;
  margin: 14px 32px 0;
  padding: 12px 14px;
}

.chat-window {
  flex-direction: column;
  gap: 18px;
  padding: 26px 32px;
  display: flex;
  overflow: auto;
}

.empty-state {
  text-align: center;
  color: #cbd5e1;
  background: #0f172a5c;
  border: 1px dashed #94a3b838;
  border-radius: 28px;
  max-width: 500px;
  margin: auto;
  padding: 42px;
}

.empty-state h3 {
  margin: 12px 0 8px;
}

.empty-state p {
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}

.message-card {
  background: linear-gradient(#0f172ac7, #0f172a75);
  border: 1px solid #94a3b824;
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 22px 80px #0000002e;
}

.question-row, .answer-row {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  display: grid;
}

.question-row {
  border-bottom: 1px solid #94a3b81a;
  padding-bottom: 16px;
}

.answer-row {
  padding-top: 16px;
}

.avatar {
  border-radius: 14px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-weight: 800;
  display: grid;
}

.avatar.user {
  color: #c4b5fd;
  background: #6366f12e;
}

.avatar.bot {
  color: #67e8f9;
  background: #06b6d424;
}

.question-text {
  color: #f8fafc;
  white-space: pre-wrap;
  margin: 5px 0 0;
  font-size: 16px;
  line-height: 1.55;
}

.answer-body {
  min-width: 0;
}

.answer-meta {
  color: #94a3b8;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 12px;
  display: flex;
}

.answer-meta span {
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.status-pill {
  border-radius: 999px;
  padding: 5px 8px;
  font-weight: 700;
}

.status-pill.mode {
  color: #a5f3fc;
  background: #0891b229;
}

.result-text {
  min-width: 0;
}

.loading-line {
  color: #bae6fd;
  align-items: center;
  gap: 9px;
  display: inline-flex;
}

.dev-panel {
  margin-top: 16px;
}

.dev-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.dev-toggle, .dev-copy {
  color: #cbd5e1;
  background: #02061761;
  border: 1px solid #94a3b824;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  display: inline-flex;
}

.dev-copy {
  color: #a5f3fc;
}

.dev-toggle:hover, .dev-copy:hover {
  background: #0891b221;
  border-color: #7dd3fc5c;
}

.dev-content {
  background: #0206176b;
  border: 1px solid #94a3b81f;
  border-radius: 16px;
  margin-top: 10px;
  padding: 14px;
}

details {
  border-top: 1px solid #94a3b81a;
  padding: 9px 0;
}

details:first-child {
  border-top: 0;
}

summary {
  cursor: pointer;
  color: #e2e8f0;
}

pre {
  color: #bfdbfe;
  background: #00000052;
  border-radius: 12px;
  max-height: 420px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.composer {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: linear-gradient(#090b1214, #090b12eb 46%);
  border-top: 1px solid #94a3b814;
  justify-content: center;
  align-items: flex-end;
  padding: 12px 24px 18px;
  display: flex;
}

.composer-wrap {
  gap: 8px;
  width: min(900px, 100%);
  display: grid;
}

.composer-box {
  background: #0f172aeb;
  border: 1px solid #94a3b838;
  border-radius: 26px;
  grid-template-columns: 120px minmax(0, 1fr) 36px;
  align-items: end;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  max-height: 144px;
  padding: 8px 8px 8px 12px;
  display: grid;
  overflow: hidden;
  box-shadow: 0 14px 46px #00000047;
}

.composer-box:focus-within {
  border-color: #7dd3fc80;
  box-shadow: 0 0 0 4px #0ea5e91f, 0 14px 46px #00000047;
}

.composer-box select {
  color: #e2e8f0;
  text-transform: capitalize;
  background: #020617ad;
  border: 1px solid #94a3b82e;
  border-radius: 999px;
  outline: none;
  height: 36px;
  padding: 0 12px;
}

.composer textarea {
  resize: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  color: #f8fafc;
  width: 100%;
  height: 32px;
  min-height: 32px;
  max-height: 120px;
  box-shadow: none;
  background: none;
  border: 0;
  outline: none;
  margin: 0;
  padding: 4px 0 0;
  line-height: 24px;
  overflow-y: auto;
}

.composer textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.composer textarea::placeholder {
  color: #94a3b8;
}

.composer textarea:focus {
  box-shadow: none;
  border: 0;
}

.send-button {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #0891b2);
  border: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  box-shadow: 0 10px 28px #0891b23d;
}

.send-button:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

.markdown-body {
  color: #e5e7eb;
  white-space: normal;
  font-size: 15px;
  line-height: 1.7;
}

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

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

.markdown-body p {
  margin: 0 0 12px;
}

.markdown-body strong {
  color: #f8fafc;
  font-weight: 800;
}

.markdown-body ul, .markdown-body ol {
  margin: 8px 0 14px;
  padding-left: 22px;
}

.markdown-body li {
  margin: 5px 0;
  padding-left: 2px;
}

.markdown-body a {
  color: #93c5fd;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  color: #f8fafc;
  letter-spacing: -.02em;
  margin: 18px 0 10px;
  line-height: 1.25;
}

.markdown-body h1 {
  font-size: 24px;
}

.markdown-body h2 {
  font-size: 20px;
}

.markdown-body h3 {
  font-size: 17px;
}

.markdown-body blockquote {
  color: #cbd5e1;
  background: #0f172a73;
  border-left: 3px solid #93c5fdb3;
  border-radius: 10px;
  margin: 12px 0;
  padding: 8px 14px;
}

.markdown-body code {
  color: #bfdbfe;
  background: #1b2235;
  border: 1px solid #94a3b824;
  border-radius: 6px;
  padding: 2px 5px;
  font-size: .92em;
}

.markdown-body pre {
  color: #bfdbfe;
  background: #00000052;
  border-radius: 12px;
  max-height: 420px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.markdown-body pre code {
  background: none;
  border: 0;
  padding: 0;
}

.markdown-body table {
  border-collapse: collapse;
  border-radius: 12px;
  width: 100%;
  margin: 12px 0;
  overflow: hidden;
}

.markdown-body th, .markdown-body td {
  text-align: left;
  vertical-align: top;
  border: 1px solid #94a3b829;
  padding: 8px 10px;
}

.markdown-body th {
  color: #f8fafc;
  background: #0f172acc;
}

.markdown-body img {
  border-radius: 10px;
  max-width: 100%;
}

.markdown-body hr {
  border: none;
  border-top: 1px solid #ffffff1f;
  margin: 20px 0;
}

pre[class*="language-"] {
  border-radius: 12px !important;
  margin: 12px 0 !important;
  font-size: 13px !important;
}

code[class*="language-"] {
  font-size: 13px !important;
}

.spin {
  animation: 1s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .settings-card {
    grid-template-columns: 1fr;
    margin-left: 16px;
    margin-right: 16px;
  }

  .topbar, .chat-window {
    padding-left: 16px;
    padding-right: 16px;
  }

  .composer {
    padding: 10px 12px 14px;
  }

  .composer-wrap {
    width: 100%;
  }

  .composer-box {
    border-radius: 24px;
    grid-template-columns: 96px minmax(0, 1fr) 36px;
    padding: 8px 8px 8px 10px;
  }
}

@media (max-width: 560px) {
  .topbar h2 {
    display: none;
  }

  .composer-box {
    grid-template-columns: 1fr 36px;
  }

  .composer-box select {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

.plain-code-block {
  color: #bfdbfe;
  white-space: pre;
  background: #00000052;
  border: 1px solid #94a3b824;
  border-radius: 12px;
  max-height: 520px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.plain-code-block:before {
  content: attr(data-language);
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  font-size: 11px;
  display: block;
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/