@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #050508;
}

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism Surface */
.glass-panel {
  background: rgba(13, 14, 21, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #1f2230;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2b3040;
}

/* ---------- Markdown balasan AI ---------- */
.md {
  overflow-wrap: anywhere;
}

.md > * + * {
  margin-top: 0.65rem;
}

.md-p {
  white-space: pre-wrap;
  margin: 0;
}

.md-h {
  font-weight: 700;
  color: #f4f4f5;
  line-height: 1.3;
  margin: 0;
}
.md-h1 { font-size: 1.15rem; }
.md-h2 { font-size: 1.05rem; }
.md-h3 { font-size: 0.95rem; }
.md-h4 { font-size: 0.875rem; color: #d4d4d8; }

.md-list {
  margin: 0;
  padding-left: 1.25rem;
}
.md-ul { list-style: disc; }
.md-ol { list-style: decimal; }
.md-list li + li { margin-top: 0.2rem; }
.md-list li::marker { color: #22d3ee; }

.md-quote {
  margin: 0;
  padding: 0.1rem 0 0.1rem 0.8rem;
  border-left: 2px solid #164e63;
  color: #a1a1aa;
}

.md-hr {
  border: 0;
  border-top: 1px solid #27272a;
  margin: 0.8rem 0;
}

.md-link {
  color: #22d3ee;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.md-link:hover { color: #67e8f9; }

.md-code {
  font-size: 0.85em;
  background: #141622;
  border: 1px solid #272b40;
  color: #67e8f9;
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
}

.md-pre {
  background: #08090e;
  border: 1px solid #1f2230;
  border-radius: 0.75rem;
  overflow: hidden;
}

.md-pre-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.75rem;
  background: #0d0e15;
  border-bottom: 1px solid #1f2230;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #71717a;
}

.md-pre-bar button {
  background: transparent;
  border: 0;
  color: #a1a1aa;
  font: inherit;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
}
.md-pre-bar button:hover {
  color: #22d3ee;
  background: #141622;
}

.md-pre pre {
  margin: 0;
  padding: 0.75rem;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #e4e4e7;
  white-space: pre;
  tab-size: 2;
}
.md-pre pre code {
  font-family: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.md-table-wrap {
  overflow-x: auto;
  border: 1px solid #1f2230;
  border-radius: 0.6rem;
}
.md-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.78rem;
}
.md-table th,
.md-table td {
  padding: 0.4rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid #1f2230;
  white-space: nowrap;
}
.md-table th {
  background: #0d0e15;
  color: #d4d4d8;
  font-weight: 600;
}
.md-table tr:last-child td { border-bottom: 0; }
