.chatbot-window {
  border-color: rgb(95 162 221);
  border-style: solid;
  border-left-width: 2px !important;
  border-radius: 15px 0 0 0px !important;
  box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.20);
  .x-panel-header {
    background-color: #5fa2dd !important;
  }
  .x-panel-header-title-default > .x-title-text-default {
    color: white !important;
  }
  .x-panel-header-default .x-tool-tool-el {
    background-color: transparent !important;
    color: white !important;
  }
  .x-toolbar.x-toolbar-docked-top {
    box-shadow: none;
    background-color: #d0d0d0 !important;
  }
}

.chatbot-ai-icon-window {
  width: 24px !important;
  height: 24px !important;
  padding: 0 5px 0 0 !important;
  background-image: url('../images/ext/PapyrosAI.webp') !important;
  background-size: 90% 90% !important;
}

.chatbot-thread-combo {
  max-width: 300px !important;
  margin: -2px 5px 0 0 !important;
}

.chatbot-window.x-panel-body-default {
    background: #fff;
    border-color: #d0d0d0;
    color: #404040;
    font-size: 13px;
    line-height: 20px;
    font-weight: 400;
    font-family: 'Open Sans', helvetica, arial, verdana, sans-serif;
    border-width: 1px;
    border-style: solid;

}

.chatbot-window.x-window-default{
  border-radius: 15px 0 0 0px !important;
}

.chatbot-window.x-border-region-slide-in {
  border-left-style: solid !important;
}

.chat-display {
  overflow-y: auto;
  padding: 10px;
}

.chat-message {
  margin: 10px 0;
  clear: both;
}

.user-message {
  background-color: #e2f1ff;
  padding: 10px;
  border-radius: 10px;
  float: right;
  max-width: 60%;
  word-wrap: break-word;
}

.bot-message {
  float: left;
  max-width: 100%;
  word-wrap: break-word;
}

.chatbot-user-input {
  border: none;
  border-radius: 38px;
  padding: 5px;
  transition: border-color 0.3s;

  &.x-field-focus{
    border-color: #d0d0d0;
    outline: none;
  }

  .x-form-field{
    border: none;
  }

  .x-form-trigger {
    border: none;
    align-content: end !important;
    font-family: FontAwesome;
    font-weight: 900;
    display: inline;
  }

  .x-form-send-trigger:before {
    content: "\f1d8";
  }

  .x-form-text {
    height: 100% !important;
    align-content: center !important;
  }
}

.chatbot-loading-message {
  opacity: 0.7;
}
.chatbot-loading-dots {
  font-size: xx-large;
  animation: loading 1.5s infinite;
}
@keyframes loading {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.clickable-reference {
  cursor: pointer;
  text-decoration: none; /* Remove underline */
}
.clickable-reference:hover {
  transition: color 0.3s ease;
}

.thinking-steps-container {
  margin-bottom: 10px;
}

.thinking-step {
  display: flex;
  align-items: flex-start;
  padding: 4px 8px;
  margin-bottom: 4px;
  background-color: rgba(0, 0, 0, 0.03);
  border-left: 3px solid #ccc;
  font-style: italic;
}

.step-indicator {
  flex: 0 0 24px;
  height: 24px;
  margin-right: 10px;
}

.step-content {
  flex: 1;
}

.loading-circle {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top: 2px solid #d0d0d0;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1.5s linear infinite;
}

.checkmark {
  color: #d0d0d0;
  position: relative;
  &:before {
    content: '✓';
    font-size: 16px;
  }
}

.chat-delete-trigger {
  font-family: FontAwesome;
  font-weight: 900;
}

.chat-delete-trigger:before{
  content: "\f12d";
}

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