/* Reset */
* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  background: #f0f4ff;
  color: #111;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #cce0ff;
  background: #3366ff;
  color: white;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
}

.badge {
  font-size: 0.65rem;
  margin-left: 4px;
  background: #99bbff;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Main */
.main, .chat-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.main h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Pills */
.pill-container {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  margin-bottom: 2rem;
}

.pill {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #3366ff;
  background: #e6f0ff;
  cursor: pointer;
  white-space: nowrap;
  color: #3366ff;
  transition: 0.2s;
}

.pill.active, .pill:hover {
  background: #3366ff;
  color: white;
}

/* Prompt Box */
.prompt-box {
  position: relative;
  border: 1px solid #aac0ff;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  margin-top: 1rem;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.prompt-box textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 1rem;
  padding: 0.5rem 3rem 0.5rem 2rem;
  min-height: 60px;
}

.prompt-box .attach {
  position: absolute;
  left: 10px;
  bottom: 14px;
  cursor: pointer;
  color: #666;
}

.prompt-box button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: none;
  background: #3366ff;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Thinking Indicator */
.thinking {
  margin-top: 1rem;
  display: none;
  color: #5555aa;
  font-style: italic;
  text-align: center;
}

/* Chat Messages */
.chat-box {
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #e6f0ff;
  border-radius: 12px;
}

.msg {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.user {
  background: #3366ff;
  color: white;
  align-self: flex-end;
}

.bot {
  background: #cce0ff;
  color: #111;
  align-self: flex-start;
}

/* Footer */
.footer {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: #333;
}
