/* North Star Support Bot — outdoorsy, calm, trail-inspired theme */

:root {
  --pine:   #1f4d3a;
  --pine-2: #2e6b50;
  --sky:    #4a90a4;
  --sand:   #f4efe6;
  --bark:   #3a332b;
  --bot-bg: #ffffff;
  --user-bg:#2e6b50;
  --shadow: 0 10px 30px rgba(31, 77, 58, 0.18);
}

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

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(160deg, #dce8e1 0%, #c4d8cf 50%, #aac4ba 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.chat-shell {
  width: 100%;
  max-width: 460px;
  height: 88vh;
  max-height: 760px;
  background: var(--sand);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- header ---- */
.chat-header {
  background: linear-gradient(135deg, var(--pine) 0%, var(--pine-2) 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px;
}
.header-text h1 { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.header-text p  { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7CFC9A; box-shadow: 0 0 6px #7CFC9A;
}

/* ---- messages ---- */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
  animation: pop .18s ease-out;
}
.msg.bot {
  background: var(--bot-bg);
  color: var(--bark);
  border-bottom-left-radius: 5px;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.msg.user {
  background: var(--user-bg);
  color: #fff;
  border-bottom-right-radius: 5px;
  align-self: flex-end;
}
.msg strong { font-weight: 700; }
.msg a { color: var(--sky); }
.msg.user a { color: #cdeafc; }

@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* typing indicator */
.typing { display: inline-flex; gap: 4px; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #9aa39c;
  animation: blink 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100%{opacity:.3;transform:translateY(0)} 40%{opacity:1;transform:translateY(-3px)} }

/* ---- quick-reply chips ---- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 6px;
}
.chip {
  background: #fff;
  border: 1.5px solid var(--pine-2);
  color: var(--pine);
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { background: var(--pine-2); color: #fff; }

/* ---- composer ---- */
.composer {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #e3dccd;
}
.composer input {
  flex: 1;
  border: 1.5px solid #d8d0c0;
  border-radius: 22px;
  padding: 11px 16px;
  font-size: 14.5px;
  outline: none;
  transition: border .15s;
}
.composer input:focus { border-color: var(--pine-2); }
.composer button {
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s;
}
.composer button:hover { background: var(--pine-2); }
