@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f4f5f7;
  --card: #ffffff;
  --accent: #4f5dff;
  --shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #ffffff;
}

.mysql-theme {
  background: #f4f5f7;
}

.mysql-theme .page {
  background: #f4f5f7;
}

.postgres-theme {
  background: #f4f5f7;
}

.postgres-theme .page {
  background: #f4f5f7;
}

.sqlserver-theme {
  background: #f4f5f7;
}

.sqlserver-theme .page {
  background: #f4f5f7;
}

.page {
  min-height: 100vh;
  padding: 0 32px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  border: none;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--accent);
}

.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.brand-name {
  font-size: 20px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--accent);
  font-weight: 500;
}

.topnav a {
  color: var(--accent);
  text-decoration: none;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 280px;
  padding: 8px;
  z-index: 1000;
  margin-top: 8px;
}

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  color: #24292f;
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: #f6f8fa;
}

.dropdown-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item-title {
  font-weight: 600;
  font-size: 14px;
  color: #24292f;
}

.dropdown-item-desc {
  font-size: 12px;
  color: #57606a;
}

.icon-btn {
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--accent);
  cursor: pointer;
}

.login-btn {
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.landing {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  padding: 26px 66px 0;
}

.hero {
  text-align: center;
  display: grid;
  gap: 10px;
  padding: 40px 0 10px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  color: #3f3f46;
}

.hero .accent {
  color: var(--accent);
}

.hero p {
  margin: 0;
  color: #6b7280;
  font-size: 18px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-bar.active {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid var(--muted);
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: var(--muted);
  right: -6px;
  bottom: -2px;
  transform: rotate(45deg);
}

.search-bar input {
  border: none;
  outline: none;
  font-size: 18px;
  width: 100%;
  color: var(--ink);
}

.tab-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.tab {
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--muted);
}

.tab.active {
  background: var(--soft);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  min-width: 150px;
  flex: 0 0 auto;
  box-shadow: var(--shadow);
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.card-title {
  font-weight: 600;
  font-size: 12px;
}

.card-logo {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: transparent;
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.large-logo {
  width: 52px;
  height: 52px;
}

.trust {
  text-align: center;
  padding: 72px 16px 32px;
  color: #6b7280;
}

.trust h2 {
  margin: 0 0 28px;
  font-weight: 500;
  font-size: 22px;
  color: #6b7280;
}

.logo-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 18px;
  font-size: 20px;
  font-weight: 600;
  color: #4b5563;
}

.logo-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.examples-grid {
  padding: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.examples-filter {
  padding-bottom: 12px;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-label {
  font-weight: 600;
  color: #1d4ed8;
}

.reset-toggle {
  margin-left: auto;
}

.demo-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.demo-header h2 {
  margin: 0;
  font-size: 20px;
  color: #111827;
}

.demo-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.demo-header h2 {
  margin: 0;
  font-size: 20px;
  color: #111827;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #4f5dff;
}

.filter-toggle input {
  width: 16px;
  height: 16px;
}
.logo-grid img {
  max-height: 36px;
  max-width: 140px;
  width: auto;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.9;
}

.logo-text {
  font-weight: 600;
  color: #4b5563;
}

.mysql-page {
  gap: 24px;
}

.mysql-hero {
  text-align: left;
  padding: 30px 0 10px;
}

.mysql-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: #111827;
}

.mysql-hero p {
  font-size: 16px;
  color: #6b7280;
}

.mysql-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.mysql-tabs {
  display: flex;
  gap: 16px;
}

.hidden-input {
  display: none;
}

.mysql-tabs .tab {
  font-weight: 600;
  color: #6b7280;
  padding: 8px 0;
  border-radius: 0;
}

.mysql-tabs .tab.active {
  color: #3b5bfd;
  border-bottom: 2px solid #3b5bfd;
  box-shadow: none;
  background: transparent;
}

.mysql-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.mysql-toolbar .mysql-actions {
  margin-top: 0;
}

.ai-btn,
.lang-btn,
.run-btn,
.primary-btn,
.secondary-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
}

.ai-btn {
  background: #12b981;
  border-color: #12b981;
  color: #ffffff;
}

.lang-btn {
  background: #4f5dff;
  border-color: #4f5dff;
  color: #ffffff;
}

.run-btn {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

.primary-btn {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.secondary-btn {
  color: var(--ink);
}

.small-btn {
  padding: 6px 12px;
  font-size: 12px;
}

.mysql-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mysql-editor,
.mysql-output {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-weight: 600;
  font-size: 12px;
}

.mysql-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f3f4f6;
  font-weight: 600;
  font-size: 14px;
}

.mysql-controls {
  display: flex;
  gap: 8px;
}

.mysql-code {
  margin: 0;
  padding: 16px;
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.7;
  background: #ffffff;
  color: #111827;
  min-height: 320px;
  width: 100%;
  border: none;
  resize: vertical;
}

.sql-editor-wrap {
  position: relative;
  height: 360px;
}

.mysql-code.input {
  position: relative;
  background: transparent;
  color: transparent;
  caret-color: #111827;
  z-index: 2;
  white-space: pre-wrap;
  overflow: auto;
  height: 360px;
}

.mysql-code.highlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  white-space: pre-wrap;
  pointer-events: none;
  color: #374151;
  overflow: hidden;
}

.token-keyword {
  color: #c026d3;
  font-weight: 600;
}

.token-func {
  color: #d97706;
  font-weight: 600;
}

.token-string {
  color: #16a34a;
}

.token-comment {
  color: #1d4ed8;
}

.token-number {
  color: #d97706;
}

.mysql-table {
  padding: 16px;
  display: grid;
  gap: 10px;
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 14px;
}

.mysql-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.mysql-row.header {
  font-weight: 700;
  background: #e2e8f0;
}

.site-footer {
  background: #f8f9fa;
  color: #6c757d;
  margin-top: 36px;
  padding: 16px 32px;
  border-top: 1px solid #dee2e6;
  font-size: 13px;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left p,
.footer-right p {
  margin: 4px 0;
}

.footer-left a,
.footer-right a {
  color: #0d6efd;
  text-decoration: underline;
}

.footer-left a:hover,
.footer-right a:hover {
  color: #0a58ca;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(360px, 2fr) minmax(180px, 0.8fr);
  gap: 36px;
}

.footer-col h3 {
  margin: 0 0 16px;
  color: #e2e8f0;
  font-size: 18px;
}

.footer-col a {
  display: block;
  color: #a8b3d8;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 15px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-spacer {
  height: 12px;
}

.footer-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.logo-fallback {
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 10px;
}

.mssql {
  background: #ef4444;
}

.redshift {
  background: #f97316;
}

@media (max-width: 900px) {
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: 18px;
  }

  .mysql-workspace {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .page {
    padding: 20px;
  }

  .search-bar input {
    font-size: 16px;
  }

  .tab-row {
    flex-wrap: wrap;
  }

  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 16px;
  }

  .footer-lists {
    grid-template-columns: 1fr;
  }
}

/* PostgreSQL Theme Styles */
.postgres-page {
  gap: 24px;
}

.postgres-hero {
  text-align: left;
  padding: 30px 0 10px;
}

.postgres-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: #111827;
}

.postgres-hero p {
  font-size: 16px;
  color: #6b7280;
}

.postgres-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.postgres-tabs {
  display: flex;
  gap: 16px;
}

.postgres-tabs .tab {
  font-weight: 600;
  color: #6b7280;
  padding: 8px 0;
  border-radius: 0;
}

.postgres-tabs .tab.active {
  color: #336791;
  border-bottom: 2px solid #336791;
  box-shadow: none;
  background: transparent;
}

.postgres-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.postgres-toolbar .postgres-actions {
  margin-top: 0;
}

.postgres-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.postgres-editor,
.postgres-output {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-weight: 600;
  font-size: 12px;
}

.postgres-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f3f4f6;
  font-weight: 600;
  font-size: 14px;
}

.postgres-controls {
  display: flex;
  gap: 8px;
}

.postgres-code {
  margin: 0;
  padding: 16px;
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.7;
  background: #ffffff;
  color: #111827;
  min-height: 320px;
  width: 100%;
  border: none;
  resize: vertical;
}

.postgres-code.input {
  position: relative;
  background: transparent;
  color: transparent;
  caret-color: #111827;
  z-index: 2;
  white-space: pre-wrap;
  overflow: auto;
  height: 360px;
}

.postgres-code.highlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  white-space: pre-wrap;
  pointer-events: none;
  color: #374151;
  overflow: hidden;
}

.postgres-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.postgres-row.header {
  background: #f3f4f6;
  font-weight: 600;
  font-size: 13px;
  color: #6b7280;
}

.postgres-row span {
  word-break: break-word;
  overflow-wrap: break-word;
}

.postgres-table {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .postgres-workspace {
    grid-template-columns: 1fr;
  }
}

/* SQLite Theme Styles */
.sqlite-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sqlite-editor,
.sqlite-output {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-weight: 600;
  font-size: 12px;
}

.sqlite-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f3f4f6;
  font-weight: 600;
  font-size: 14px;
}

.sqlite-controls {
  display: flex;
  gap: 8px;
}

.sqlite-code {
  margin: 0;
  padding: 16px;
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.7;
  background: #ffffff;
  color: #111827;
  min-height: 320px;
  width: 100%;
  border: none;
  resize: vertical;
}

.sqlite-code.input {
  position: relative;
  background: transparent;
  color: transparent;
  caret-color: #111827;
  z-index: 2;
  white-space: pre-wrap;
  overflow: auto;
  height: 360px;
}

.sqlite-code.highlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  white-space: pre-wrap;
  pointer-events: none;
  color: #374151;
  overflow: hidden;
}

.sqlite-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.sqlite-row.header {
  background: #f3f4f6;
  font-weight: 600;
  font-size: 13px;
  color: #6b7280;
}

.sqlite-row span {
  word-break: break-word;
  overflow-wrap: break-word;
}

.sqlite-table {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .sqlite-workspace {
    grid-template-columns: 1fr;
  }
}

/* SQLite Toolbar Styles */
.sqlite-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.sqlite-tabs {
  display: flex;
  gap: 16px;
}

.sqlite-tabs .tab {
  font-weight: 600;
  color: #6b7280;
  padding: 8px 0;
  border-radius: 0;
}

.sqlite-tabs .tab.active {
  color: #3b5bfd;
  border-bottom: 2px solid #3b5bfd;
  box-shadow: none;
  background: transparent;
}

.sqlite-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.sqlite-toolbar .sqlite-actions {
  margin-top: 0;
}

/* SQL Server Theme Styles */
.sqlserver-page {
  gap: 24px;
}

.sqlserver-hero {
  text-align: left;
  padding: 30px 0 10px;
}

.sqlserver-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: #111827;
}

.sqlserver-hero p {
  font-size: 16px;
  color: #6b7280;
}

.sqlserver-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.sqlserver-tabs {
  display: flex;
  gap: 16px;
}

.sqlserver-tabs .tab {
  font-weight: 600;
  color: #6b7280;
  padding: 8px 0;
  border-radius: 0;
}

.sqlserver-tabs .tab.active {
  color: #0078d4;
  border-bottom: 2px solid #0078d4;
  box-shadow: none;
  background: transparent;
}

.sqlserver-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.sqlserver-toolbar .sqlserver-actions {
  margin-top: 0;
}

.sqlserver-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sqlserver-editor,
.sqlserver-output {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sqlserver-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f3f4f6;
  font-weight: 600;
  font-size: 14px;
}

.sqlserver-controls {
  display: flex;
  gap: 8px;
}

.sqlserver-code {
  margin: 0;
  padding: 16px;
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.7;
  background: #ffffff;
  color: #111827;
  min-height: 320px;
  width: 100%;
  border: none;
  resize: vertical;
}

.sqlserver-code.input {
  position: relative;
  background: transparent;
  color: transparent;
  caret-color: #111827;
  z-index: 2;
  white-space: pre-wrap;
  overflow: auto;
  height: 360px;
}

.sqlserver-code.highlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  white-space: pre-wrap;
  pointer-events: none;
  color: #374151;
  overflow: hidden;
}

.sqlserver-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.sqlserver-row.header {
  background: #f3f4f6;
  font-weight: 600;
  font-size: 13px;
  color: #6b7280;
}

.sqlserver-row span {
  word-break: break-word;
  overflow-wrap: break-word;
}

.sqlserver-table {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .sqlserver-workspace {
    grid-template-columns: 1fr;
  }
}

/* AI Output Styling */
.ai-output {
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  overflow-y: auto;
  max-height: 100%;
}

.ai-output-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px 8px 0 0;
}

.ai-output-header::before {
  content: "✨";
  font-size: 16px;
}

.ai-output h2, .ai-output h3, .ai-output h4 {
  color: #1e293b;
  margin-top: 16px;
  margin-bottom: 8px;
}

.ai-output h2 { font-size: 18px; }
.ai-output h3 { font-size: 16px; }
.ai-output h4 { font-size: 14px; }

.ai-output p {
  margin: 8px 0;
}

.ai-output ul, .ai-output ol {
  margin: 8px 0;
  padding-left: 24px;
}

.ai-output li {
  margin: 4px 0;
}

.ai-output code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  color: #7c3aed;
}

.ai-output pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 12px 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  margin: 12px 0;
}

.ai-output pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.ai-output strong {
  color: #1e293b;
  font-weight: 600;
}

.ai-output em {
  color: #64748b;
}

.ai-output blockquote {
  border-left: 4px solid #6366f1;
  margin: 12px 0;
  padding: 8px 16px;
  background: #eef2ff;
  border-radius: 0 6px 6px 0;
  color: #4338ca;
}

/* Upload Query Button */
.upload-query-btn {
  background: #3b82f6 !important;
  border: 1px solid #3b82f6 !important;
  border-radius: 8px;
  padding: 8px 16px;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.upload-query-btn:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

/* AI Create Button */
.ai-create-btn {
  background: #10b981 !important;
  border: 1px solid #10b981 !important;
  border-radius: 8px;
  padding: 8px 16px;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.ai-create-btn:hover {
  background: #059669 !important;
  border-color: #059669 !important;
}
