* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f4f2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #2c2c2c;
}

.container {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.main-title {
  font-size: 2.8rem;
  font-weight: 500;
  color: #2c2c2c;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 0.9rem;
  color: #999;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  /* font-style: italic; */
  text-align: center;
  font-weight: 400;
}

.tagline a {
  color: #999;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.tagline a:hover {
  color: #ffca3e;
  text-decoration: none;
}

.input-container {
  position: relative;
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e6e3;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 16px;
}

#userInput {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 12px 0;
  background: transparent;
  color: #2c2c2c;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#userInput::placeholder {
  color: #999;
  font-weight: 400;
  font-style: italic;
}


.send-btn {
  background: #ffca3e;
  border: none;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.send-btn:hover {
  background: #e6b735;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.send-btn:disabled {
  background: #d4d4d4;
  cursor: not-allowed;
  transform: none;
}

.send-icon {
  color: #2c2c2c;
  font-size: 1.1rem;
  font-weight: bold;
}

.chat-container {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e6e3;
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  text-align: left;
  margin-top: 2rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Chat bubble styles */
.chat-message {
  display: flex;
  align-items: flex-start;
  margin: 16px 0;
  gap: 12px;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 40%;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8e6e3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: 600;
  font-size: 16px;
}

.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.message-bubble.user {
  background: #f0f0f0;
  color: #2c2c2c;
  border-bottom-right-radius: 6px;
}

.message-bubble.bot {
  background: #ffca3e;
  color: #2c2c2c;
  border-bottom-left-radius: 6px;
}

/* Loading indicator styles */
.loading-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
}

.loading-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 40%;
}

.loading-bubble {
  background: #fefdf8;
  border: 1px solid #ffca3e;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 70%;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f0f0f0;
  border-top: 2px solid #ffca3e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: #8b7355;
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 0.8rem;
  }
  
  .input-container {
    padding: 16px;
  }
}