:root {
  --marian-blue: #1f3c88;
  --gold: #c9a227;
  --ivory: #f9f7f2;
  --soft-gray: #e5e7eb;
}

body {
  margin: 0;
  background: var(--ivory);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Wrapper allows header space */
.chatbot-wrapper {
  padding: 1rem;
  max-width: 700px;
  margin: auto;
}

/* Card */
.chatbot-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  height: 75vh;
}

/* Header */
.chatbot-header {
  background: var(--marian-blue);
  color: #fff;
  padding: 1rem;
  font-weight: 600;
  border-radius: 16px 16px 0 0;
}

.chatbot-subtitle {
  display: block;
  font-size: .8rem;
  opacity: .9;
  margin-top: .2rem;
}

/* Messages */
.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: var(--ivory);
}

/* Message styles */
.bot-message,
.user-message {
  margin-bottom: .8rem;
  display: flex;
}

.bot-message {
  justify-content: flex-start;
}

.user-message {
  justify-content: flex-end;
}

.bubble {
  max-width: 80%;
  padding: .6rem .8rem;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.4;
}

.bot-message .bubble {
  background: #fff;
  border: 1px solid var(--soft-gray);
}

.user-message .bubble {
  background: var(--marian-blue);
  color: #fff;
}

/* Input */
.chatbot-input {
  display: flex;
  gap: .5rem;
  padding: .8rem;
  border-top: 1px solid var(--soft-gray);
}

.chatbot-input input {
  flex: 1;
  padding: .6rem .8rem;
  border-radius: 10px;
  border: 1px solid var(--soft-gray);
  font-size: .9rem;
}

.chatbot-input input:focus {
  outline: none;
  border-color: var(--marian-blue);
}

.chatbot-input button {
  background: var(--marian-blue);
  color: #fff;
  border: none;
  padding: .6rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
}

.chatbot-input button:hover {
  background: #162f6a;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .chatbot-card {
    height: 80vh;
  }
}


