:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --accent: #0b5cff;
  --muted: #6b7280;
}

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: linear-gradient(135deg, #f4f7ff 0%, #eef4ff 100%);
  margin: 0;
  color: #1f2937;
}

/* MAIN APP WRAPPER */
.app {
  max-width: 900px;
  margin: 24px auto;
  box-shadow: 0 8px 30px rgba(13, 18, 29, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);

  /* Push content below fixed header */
  padding-top: 96px;         /* header height (72px + padding) */
}

/* FIXED HEADER */
.app-header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--card);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* LOGO */
.logo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: contain;
}

/* TITLES */
.title h1 {
  margin: 0;
  font-size: 18px;
}

.subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* CHAT AREA */
.chat-area {
  padding: 18px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

/* MESSAGE BOX */
.messages {
  flex: 1;
  overflow: auto;
  padding: 8px;
  border-radius: 8px;
  background: #fbfdff;
  border: 1px solid rgba(11, 92, 255, 0.03);
}

/* MESSAGE BUBBLES */
.message {
  margin: 10px 0;
  display: flex;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 10px;
  background: #eef4ff;
  color: #0b5cff;
  width: fit-content;
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b5cff;
}

.message.user {
  justify-content: flex-end;
}

.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(12, 20, 40, 0.04);
  line-height: 1.5;
  white-space: pre-wrap;
}

.message.user .bubble {
  background: var(--accent);
  color: #fff;
}

/* INPUT FORM */
.chat-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.chat-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e6e9ef;
}

.chat-form button {
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

/* FOOTER */
.footer {
  padding: 12px 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* SMALL SCREENS */
@media (max-width: 600px) {
  .logo {
    width: 48px;
    height: 48px;
  }

  .app {
    padding-top: 78px; /* adjust spacing on mobile */
  }

  .app-header {
    padding: 12px;
  }
}
