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

:root {
  --bg-deep: #05060a;
  --panel-bg: rgba(13, 15, 24, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --accent-cyan: #22d3ee;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-deep);
  color: #f4f4f5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Glassmorphism Surface Modern */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Logo & Ambient Aura Stage */
.ambient-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22) 0%, rgba(99, 102, 241, 0.15) 45%, rgba(6, 182, 212, 0.05) 70%, transparent 85%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { transform: scale(0.9) translateY(0); opacity: 0.7; }
  100% { transform: scale(1.15) translateY(-6px); opacity: 1; }
}

/* Animasi Fade In Lembut */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Kartu Prompt Bergaya Studio */
.prompt-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(24, 27, 40, 0.6) 0%, rgba(15, 17, 26, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.prompt-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
  background: linear-gradient(180deg, rgba(30, 34, 52, 0.85) 0%, rgba(18, 21, 33, 0.95) 100%);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5), 0 0 16px -2px rgba(34, 211, 238, 0.15);
}

/* Custom Scrollbar Super Ramping */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

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

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

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

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

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

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

.md-h {
  font-weight: 700;
  color: #f4f4f5;
  line-height: 1.35;
  margin: 0;
}
.md-h1 { font-size: 1.2rem; }
.md-h2 { font-size: 1.08rem; }
.md-h3 { font-size: 0.98rem; }
.md-h4 { font-size: 0.88rem; color: #d4d4d8; }

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

.md-quote {
  margin: 0;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 2px solid #0891b2;
  color: #a1a1aa;
  background: rgba(8, 145, 178, 0.05);
  border-radius: 0 0.4rem 0.4rem 0;
}

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

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

.md-code {
  font-size: 0.84em;
  background: #10121d;
  border: 1px solid #23273c;
  color: #67e8f9;
  padding: 0.15rem 0.4rem;
  border-radius: 0.4rem;
}

.md-pre {
  background: #08090f;
  border: 1px solid #1c2033;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.md-pre-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.85rem;
  background: #0d0f1a;
  border-bottom: 1px solid #1c2033;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #71717a;
}

.md-pre-bar button {
  background: transparent;
  border: 0;
  color: #a1a1aa;
  font: inherit;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  transition: all 0.15s;
}
.md-pre-bar button:hover {
  color: #22d3ee;
  background: #181b2a;
}

.md-pre pre {
  margin: 0;
  padding: 0.85rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.6;
  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 #1c2033;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.md-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.8rem;
}
.md-table th,
.md-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #1c2033;
  white-space: nowrap;
}
.md-table th {
  background: #0e101c;
  color: #d4d4d8;
  font-weight: 600;
}
.md-table tr:last-child td { border-bottom: 0; }