@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500&family=Google+Sans+Text:wght@400;500&display=swap');

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

body {
  font-family: 'Google Sans Text', 'Google Sans', system-ui, sans-serif;
  background: #131314;
  color: #e3e3e3;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  gap: 10px;
  flex-shrink: 0;
}

.header-logo {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #4285f4, #9b72cb, #d96570);
  border-radius: 50%;
  flex-shrink: 0;
}

.header h1 {
  font-size: 1.1rem;
  font-weight: 500;
  background: linear-gradient(90deg, #4285f4, #9b72cb, #d96570);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Chat area */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  scrollbar-width: thin;
  scrollbar-color: #3c3c3c transparent;
}

.chat-area::-webkit-scrollbar { width: 6px; }
.chat-area::-webkit-scrollbar-thumb { background: #3c3c3c; border-radius: 3px; }

.messages {
  width: 100%;
  max-width: 760px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: #9aa0a6;
}

.empty-state .gem {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #4285f4, #9b72cb, #d96570);
  border-radius: 50%;
}

.empty-state p {
  font-size: 1rem;
  font-weight: 400;
}

/* Messages */
.msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 100%;
}

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

.msg.agent {
  align-items: flex-start;
}

.msg-bubble {
  padding: 12px 18px;
  border-radius: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.user .msg-bubble {
  background: #2a2b2e;
  color: #e3e3e3;
  border-bottom-right-radius: 6px;
  max-width: 80%;
}

.msg.agent .msg-bubble {
  background: transparent;
  color: #e3e3e3;
  padding-left: 0;
  padding-right: 0;
}

.msg.error .msg-bubble {
  background: #3c1a1a;
  color: #f28b82;
  border-radius: 12px;
}

.thinking .msg-bubble {
  color: #9aa0a6;
  font-style: italic;
}

/* Agent label */
.msg-label {
  font-size: 0.8rem;
  color: #9aa0a6;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.msg-label .dot {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #4285f4, #9b72cb);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Input area */
.input-area {
  flex-shrink: 0;
  padding: 16px 24px 24px;
  display: flex;
  justify-content: center;
}

.input-box {
  width: 100%;
  max-width: 760px;
  background: #1e1f20;
  border: 1px solid #3c3c3c;
  border-radius: 24px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  transition: border-color 0.2s;
}

.input-box:focus-within {
  border-color: #5f6368;
}

textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e3e3e3;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: none;
  max-height: 200px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3c3c3c transparent;
}

textarea::placeholder { color: #9aa0a6; }

.send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #4285f4, #9b72cb);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.send-btn:disabled {
  background: #3c3c3c;
  cursor: not-allowed;
  opacity: 0.6;
}

.send-btn svg {
  width: 18px;
  height: 18px;
}

.input-footer {
  text-align: center;
  font-size: 0.75rem;
  color: #5f6368;
  margin-top: 10px;
}
