.atlas-chat-container {
  position: relative;
  background: linear-gradient(white, white) padding-box,
    radial-gradient(90.85% 90.85% at 23.59% 13.08%, #b35dfa 0%, #c82c46 100%)
      border-box;
  border: 2px solid transparent;
  border-radius: 12px;
  width: 100%;
  height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Avenir Next", Arial, sans-serif;
}
.atlas-chat-header {
  color: #1a1a19;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #ebe9e4;
}
.atlas-chat-ai-avatar {
  display: flex;
  align-items: start;
  justify-content: center;
}
.atlas-chat-header-info h2 {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  font-family: "Avenir Next", Arial, sans-serif !important;
}
.atlas-chat-header-info {
  display: flex;
  gap: 8px;
  align-items: center;
}
.atlas-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: white;
}
.atlas-chat-message {
  margin-bottom: 20px;
  opacity: 0;
  animation: atlas-fadeIn 0.3s forwards;
}
@keyframes atlas-fadeIn {
  to {
    opacity: 1;
  }
}
.atlas-chat-message.user {
  display: flex;
  justify-content: flex-end;
  color: black !important;
}
.atlas-chat-message.ai {
  display: flex;
  justify-content: flex-start;
  color: black !important;
  position: relative;
  margin-top: 8px;
}
.atlas-chat-message-bubble {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: 18px;
  line-height: 1.5;
  background: #f6f5f1 !important;
  overflow-wrap: break-word;
}
.atlas-chat-message.user .atlas-chat-message-bubble {
  border-bottom-right-radius: 4px;
}
.atlas-chat-message.ai .atlas-chat-message-bubble {
  background: white !important;
  @apply text-jet-black;
  border-bottom-left-radius: 4px;
  border-radius: 0px !important;
  padding: 0;
}
.atlas-chat-input-container {
  padding: 15px;
  background: white;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}
.atlas-chat-input {
  flex: 1;
  padding: 18px 18px 90px 18px;
  border: 1px solid #ebe9e4;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: white;
}
.atlas-chat-send-button {
  width: 45px;
  height: 45px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: radial-gradient(
      90.85% 90.85% at 23.59% 13.08%,
      #b35dfa 0%,
      #c82c46 100%
    )
    border-box;
  background-clip: padding-box, border-box;
  background-origin: border-box;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.3s;
  font-family: "Font Awesome 6 Pro", Arial, sans-serif;
  right: 30px;
  bottom: 30px;
}
.atlas-chat-send-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(179, 93, 250, 0.6);
}
.atlas-chat-caps-beta {
  display: flex;
  padding: 2px 6px !important;
  align-items: center;
  gap: 4px;
  background-color: #39ab97;
  border-radius: 99px;
  color: white;
  width: fit-content;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
@keyframes atlas-fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.atlas-chat-container.atlas-dark {
  background: linear-gradient(#1a1a19, #1a1a19) padding-box,
    radial-gradient(90.85% 90.85% at 23.59% 13.08%, #b35dfa 0%, #c82c46 100%)
      border-box;
  color: #f5f5f5;
}
.atlas-chat-container.atlas-dark .atlas-chat-header {
  color: #fafaf8;
  border-bottom: 1px solid #343740;
  background: #1a1a19;
}
.atlas-chat-container.atlas-dark .atlas-chat-header-info h2 {
  color: #fff;
}
.atlas-chat-container.atlas-dark .atlas-chat-header-info {
  color: white;
}
.atlas-chat-container.atlas-dark .atlas-chat-messages {
  background: #1a1a19;
}
.atlas-chat-container.atlas-dark .atlas-chat-message-bubble {
  color: #fafaf8;
}
.atlas-chat-container.atlas-dark
  .atlas-chat-message.user
  .atlas-chat-message-bubble {
  border-radius: 4px 4px 0 4px;
  background: #383835 !important;
  color: #fafaf8;
}
.atlas-chat-container.atlas-dark
  .atlas-chat-message.ai
  .atlas-chat-message-bubble {
  background: transparent !important;
  color: white;
  border-bottom-left-radius: 4px;
  border-radius: 0px !important;
}
.atlas-chat-container.atlas-dark .atlas-chat-input-container {
  background: #1a1a19;
  border-top: 1px solid #343740;
}
.atlas-chat-container.atlas-dark .atlas-chat-input {
  background: #383835;
  color: #fafaf8;
  border: 1px solid #343740;
}
.atlas-chat-container.atlas-dark .atlas-chat-caps-beta {
  background: #343740;
  color: #fff;
}

/* Reasoning styles */
.reasoning-step-only {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
  margin-left: 0;
  gap: 0;
}
.atlas-ai-reasoning {
  font-size: 17px;
  margin-bottom: 6px;
  line-height: 1.2;
  font-weight: 400;
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.gradient-text-atlas {
  background: radial-gradient(
    90.85% 90.85% at 23.59% 13.08%,
    #b35dfa 0%,
    #c82c46 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-fill-color: transparent !important;
  font-weight: 400;
}
.gradient-text-after {
  color: #999 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  text-fill-color: unset !important;
  font-weight: 400;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}
.animate-pulse {
  animation: pulse-tw 1.1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-tw {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.reasoning-spinner {
  vertical-align: middle;
  margin-right: 0.5em;
  animation: spinner-rotate 0.8s linear infinite;
  display: inline-block;
}
@keyframes spinner-rotate {
  100% {
    transform: rotate(360deg);
  }
}
.spinner-path {
  stroke: #b35dfa;
  stroke-linecap: round;
  opacity: 1;
}
.spinner-track {
  stroke: #b35dfa;
  opacity: 0.25;
}

/* Responsive */
@media (max-width: 600px) {
  .atlas-chat-container {
    height: 500px;
    border-radius: 8px;
  }
  .atlas-chat-header {
    padding: 10px;
  }
  .atlas-chat-messages {
    padding: 10px;
  }
  .atlas-chat-input {
    padding: 10px 10px 60px 10px;
  }
}

.atlas-spinner {
  display: inline-block;
  vertical-align: middle;
  animation: atlas-spin 1s linear infinite;
}

@keyframes atlas-spin {
  100% {
    transform: rotate(360deg);
  }
}

.atlas-spinner-bg {
  /* This is the lighter ring behind the spinner */
  opacity: 0.2;
}

.atlas-spinner-fg {
  /* The arc that animates */
  stroke-dasharray: 60;
  stroke-dashoffset: 20;
  transition: stroke 0.2s;
}
