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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f0;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #1a6b3a;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon { font-size: 24px; }

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.logo-dot { color: #7dd3a8; }

.tagline {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
}

.chat-container {
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-intro {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.chat-intro h1 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.chat-intro p {
  font-size: 13px;
  color: #888;
}

.messages {
  padding: 12px 20px;
  max-height: 600px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
}

.msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.msg.bot .avatar {
  background: #1a6b3a;
  color: white;
}

.msg.user .avatar {
  background: #e8e8e8;
  color: #555;
}

.bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
}

.msg.bot .bubble {
  background: #f5f5f0;
  color: #1a1a1a;
  border-radius: 4px 18px 18px 18px;
}

.msg.user .bubble {
  background: #1a6b3a;
  color: white;
  border-radius: 18px 4px 18px 18px;
}

.typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 14px 16px;
}

.typing span {
  width: 7px;
  height: 7px;
  background: #aaa;
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-7px); }
}

.suggestions {
  padding: 0 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestions button {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  color: #444;
  cursor: pointer;
  transition: all 0.2s;
}

.suggestions button:hover {
  background: #1a6b3a;
  color: white;
  border-color: #1a6b3a;
}

.input-area {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.input-area textarea {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: 24px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  line-height: 1.4;
  max-height: 120px;
  outline: none;
  transition: border-color 0.2s;
}

.input-area textarea:focus {
  border-color: #1a6b3a;
}

.input-area button {
  width: 44px;
  height: 44px;
  background: #1a6b3a;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.input-area button:hover { background: #155c30; }
.input-area button:disabled { background: #aaa; cursor: not-allowed; }

.disclaimer {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  padding: 0 20px 16px;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #999;
}

footer a { color: #1a6b3a; text-decoration: none; }

@media (max-width: 600px) {
  .chat-intro h1 { font-size: 17px; }
  .messages { max-height: 400px; }
  .msg { max-width: 95%; }
}
