.message {
  display: flex;
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease-in;
  padding: 0 20px;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.message.user {
  justify-content: flex-end;
}
.message.assistant {
  justify-content: flex-start;
}
.message-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 75%;
  word-wrap: break-word;
}
.message.user .message-content {
  flex-direction: row-reverse;
}
.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f0f0f0;
}
.message.assistant .message-avatar {
  background: transparent;
}
.logo-icon-small {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  font-family: Arial, sans-serif;
}
.logo-image-small {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.message-bubble {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 12px 16px;
  max-width: 100%;
}
.message.user .message-bubble {
  background: #1a1a1a;
  color: #fff;
}
.message-sender {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
}
.logo-icon-tiny {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  font-family: Arial, sans-serif;
}
.logo-image-tiny {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}
.message-text {
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
  color: #1a1a1a;
}
.message.user .message-text {
  color: #fff;
}
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0;
}
.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999;
  animation: typing 1.4s infinite ease-in-out;
}
.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}
@keyframes typing {
  0%,
  80%,
  to {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
.message-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
}
.message-list::-webkit-scrollbar {
  width: 6px;
}
.message-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.message-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}
.message-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  text-align: center;
}
.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}
.empty-state h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}
.empty-state p {
  font-size: 14px;
  color: #888;
}
.message-input-container {
  padding: 16px 20px 20px;
  background: #fff;
  border-top: 1px solid #e5e5e5;
}
.message-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 24px;
  padding: 10px 16px;
  border: none;
}
.message-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  padding: 4px 0;
  line-height: 1.5;
  color: #1a1a1a;
}
.message-input::placeholder {
  color: #999;
}
.message-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.emoji-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.emoji-button:hover {
  background: #0000000d;
  color: #1a1a1a;
}
.send-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.send-button:hover:not(:disabled) {
  background: #0000000d;
  color: #1a1a1a;
}
.send-button:active:not(:disabled) {
  transform: scale(0.95);
}
.send-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.send-button svg,
.emoji-button svg {
  width: 20px;
  height: 20px;
}
.chat-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  position: relative;
}
.chat-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px #0000000d;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}
.header-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.header-menu span {
  width: 4px;
  height: 4px;
  background: #666;
  border-radius: 50%;
  display: block;
}
.scroll-to-bottom {
  position: absolute;
  bottom: 120px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px #00000026;
  transition: all 0.2s;
  z-index: 10;
}
.scroll-to-bottom:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px #0003;
}
.scroll-to-bottom:active {
  transform: scale(0.95);
}
.error-message {
  background: #fee;
  color: #c33;
  padding: 12px 20px;
  margin: 0 20px 10px;
  border-radius: 8px;
  font-size: 14px;
  border-left: 4px solid #c33;
  line-height: 1.5;
  word-wrap: break-word;
}
.error-message a {
  color: #c33;
  text-decoration: underline;
  font-weight: 600;
}
.evolviot-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    Fira Sans,
    Droid Sans,
    Helvetica Neue,
    sans-serif;
}
.evolviot-chat-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px #00000026;
  transition: all 0.3s ease;
  position: relative;
}
.evolviot-chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px #0003;
}
.evolviot-chat-button:active {
  transform: scale(0.95);
}
.evolviot-chat-button svg {
  width: 24px;
  height: 24px;
}
.evolviot-chat-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 600px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 100px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px #0000001f;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 480px) {
  .evolviot-chat-container {
    width: calc(100vw - 20px);
    height: calc(100vh - 80px);
    bottom: 80px;
    right: 10px;
    left: 10px;
    max-width: none;
    max-height: none;
  }
  .evolviot-chat-widget {
    bottom: 10px;
    right: 10px;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #667eea, #764ba2);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
} */
code {
  font-family:
    source-code-pro,
    Menlo,
    Monaco,
    Consolas,
    Courier New,
    monospace;
}
