body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #f8fafc;
  /* Slate 50 */
  color: #334155;
  /* Slate 700 */
}

/* Custom Utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.nav-item.active {
  color: #0f172a;
  /* Slate 900 */
  border-bottom: 2px solid #0ea5e9;
  /* Sky 500 */
  font-weight: 700;
}

.tab-btn.active {
  background-color: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
}

.tab-btn.active:hover {
  background-color: #0284c7;
  /* Sky 600 */
  color: white;
  border-color: #0284c7;
}

.step-circle.active {
  background-color: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
}

.step-line.active {
  background-color: #0ea5e9;
}

/* Chart Container Styling */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  height: 350px;
  max-height: 400px;
}

@media (max-width: 768px) {
  .chart-container {
    height: 300px;
  }
}

/* 3D Canvas Container */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Behind content */
  opacity: 1.0;
}

/* AI Loading Animation */
.typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #0ea5e9;
  border-radius: 50%;
  animation: typing 1s infinite;
  margin: 0 2px;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Markdown Styles within AI Response */
.ai-response-content h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.ai-response-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.ai-response-content li {
  margin-bottom: 0.25rem;
}

.ai-response-content strong {
  color: #0ea5e9;
}

/* Hide scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Chatbot Styles */
#chatbot-container {
  font-family: 'Noto Sans KR', sans-serif;
}

#chat-messages::-webkit-scrollbar {
  width: 6px;
}

#chat-messages::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 3px;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
}

.chat-bubble.bot {
  background-color: white;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 0;
  color: #334155;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.chat-bubble.user {
  background-color: #0ea5e9;
  color: white;
  border-top-right-radius: 0;
  margin-left: auto;
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2);
}

.chat-bubble code {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85em;
}

.chat-bubble pre {
  background-color: #1e293b;
  color: #f8fafc;
  padding: 10px;
  border-radius: 8px;
  overflow-x: auto;
  margin-top: 8px;
  font-size: 0.85em;
}

/* Typing Animation in Chat */
.chat-typing span {
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #94a3b8;
  border-radius: 50%;
  margin: 0 1px;
  animation: typing 1s infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}