/* DEX.CSS - ESTILOS DO CHAT DEX */

#dexMessages {
  height: 400px;
  overflow-y: auto;
  background: linear-gradient(
    90deg,
    #56a7b5 0%,
    #9a9a9a 100%
  ) !important;
  border-radius: 12px;
  padding: 14px !important;
  scrollbar-width: thin;
  scrollbar-color: #ffffff80 transparent;
}

#dexMessages::-webkit-scrollbar {
  width: 8px;
}

#dexMessages::-webkit-scrollbar-track {
  background: transparent;
}

#dexMessages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

#dexMessages .badge.bg-accent,
#dexMessages .badge.bg-secondary {
  display: none;
}

.dex-wrap {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.dex-wrap-left {
  align-items: flex-start;
}

.dex-wrap-right {
  align-items: flex-end;
}

.dex-author {
  font-size: 0.75rem;
  margin-bottom: 6px;
  padding: 0 6px;
  letter-spacing: 0.5px;
}

.dex-author-left,
.dex-author-right {
  color: #ffffff;
}

.dex-message {
  max-width: 78%;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  word-break: break-word;
}

.dex-message.dex {
  background: #22b8cc;
  margin-right: auto;
  border-top-left-radius: 4px;
}

.dex-message.user {
  background: #ff0a5f;
  margin-left: auto;
  text-align: right;
  border-top-right-radius: 4px;
}

#dexInput {
  height: 56px;
  border-radius: 10px;
  border: none;
  background: #efefef;
  color: #444;
}

#dexInput::placeholder {
  transition: opacity 0.15s ease;
}

#dexInput:focus::placeholder,
#dexInput.dex-has-loader::placeholder {
  opacity: 0;
}

#dexChatForm .btn-accent {
  min-width: 110px;
  border-radius: 10px;
  background: #ff0a5f !important;
  border-color: #ff0a5f !important;
}

#dexChatForm .btn-accent:hover {
  transform: translateY(-2px);
}

#dexMessages .dex-message .dex-link {
  color: #55003e;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 3px;
}

#dexMessages .dex-message .dex-link:hover,
#dexMessages .dex-message .dex-link:focus-visible {
  color: #3a0029;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.page-dex .page-header .page-header-media {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.dex-chat-form--guest .form-control:disabled,
.dex-chat-form--guest .btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

#dexChatForm {
  position: relative;
}

#dexInput.dex-has-loader {
  padding-left: 44px;
}

.dex-input-loader {
  position: absolute;
  left: 12px;
  bottom: calc(50% - 18px);
  width: 36px;
  height: 36px;
  display: none;
  pointer-events: none;
  opacity: 0.95;
}

.dex-input-loader img {
  width: 100%;
  object-fit: contain;
  display: block;
}
