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

:root {
  --primary-navy: #0f172a;
  --secondary-navy: #1e293b;
  --accent-blue: #2563eb;
  --accent-gold: #d97706;
  --accent-green: #059669;
  --bg-chat: #f8fafc;
}

* {
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Chat bubble styling */
.bubble-user {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.bubble-ai {
  background: #ffffff;
  color: #1e293b;
  border-radius: 18px 18px 18px 4px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Card Produk Hukum */
.card-regulation {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
  background: #ffffff;
}
.card-regulation:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.12);
}

/* Typing Dots Animation */
.typing-dot {
  animation: typingBounce 1.3s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Toast Notification */
#toast {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Markdown typography inside AI response */
.ai-content p {
  margin-bottom: 0.65rem;
  line-height: 1.6;
}
.ai-content p:last-child {
  margin-bottom: 0;
}
.ai-content strong {
  color: #0f172a;
  font-weight: 700;
}
.ai-content ul, .ai-content ol {
  margin: 0.4rem 0 0.65rem 1.25rem;
}
.ai-content li {
  margin-bottom: 0.25rem;
}
