/* Minimal, clean, straightforward styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #fafafa;
  color: #171717;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.navbar {
  height: 54px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.brand-name {
  font-weight: 600;
  font-size: 15px;
  color: #171717;
  letter-spacing: -0.01em;
}

.nav-tabs {
  display: flex;
  gap: 6px;
}

.nav-tab {
  background: none;
  border: none;
  font-size: 14px;
  color: #737373;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-tab:hover {
  color: #171717;
  background-color: #f5f5f5;
}

.nav-tab.active {
  color: #171717;
  font-weight: 500;
  background-color: #f0f0f0;
}

.nav-extra .nav-link {
  font-size: 13px;
  color: #737373;
  text-decoration: none;
}

.nav-extra .nav-link:hover {
  color: #171717;
}

/* Chat Main Layout */
.chat-container {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 20px;
}

.bot-header {
  margin-bottom: 20px;
  text-align: center;
}

.bot-header h1 {
  font-size: 18px;
  font-weight: 600;
  color: #171717;
}

.bot-header p {
  font-size: 13px;
  color: #737373;
  margin-top: 2px;
}

/* Messages */
.messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0;
  max-height: calc(100vh - 240px);
}

.msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

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

.msg.assistant {
  align-self: flex-start;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.user .msg-bubble {
  background-color: #171717;
  color: #ffffff;
}

.msg.assistant .msg-bubble {
  background-color: #ffffff;
  color: #171717;
  border: 1px solid #e5e5e5;
}

.msg-sources {
  font-size: 11px;
  color: #8c8c8c;
  margin-top: 4px;
  padding: 0 4px;
}

.msg.loading .msg-bubble {
  color: #8c8c8c;
  font-style: italic;
}

/* Suggestions */
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 10px;
}

.sugg-btn {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 5px 11px;
  font-size: 12px;
  color: #525252;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sugg-btn:hover {
  background-color: #f5f5f5;
  color: #171717;
  border-color: #d4d4d4;
}

/* Input Form */
.input-form {
  display: flex;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  padding: 6px 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.input-form:focus-within {
  border-color: #171717;
}

.input-form input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: #171717;
  padding: 4px 6px;
}

.input-form input::placeholder {
  color: #a3a3a3;
}

.input-form button {
  background-color: #171717;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.input-form button:hover {
  opacity: 0.85;
}

.input-form button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
