.ai-model-listing-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  max-height: 200px; 
  overflow-y: auto; 
}
.ai-avatar {
    border-radius: 50%;
    margin-right: 10px;
}
.ai-model-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.ai-model-item:hover {
  background-color: #f1f1f1;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}
.ai-wrapper
{
    display:flex;
}
.trigger_actions {
  display: flex;
  gap: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.trigger_actions > div {
  flex: 1 1 45%; 
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.trigger_actions > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.trigger_actions h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 5px;
}
.trigger_actions .triggers,
.trigger_actions .actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trigger_actions .triggers div,
.trigger_actions .actions div {
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  color: #555;
  border: 1px solid #ddd;
}
.trigger_actions .triggers div:hover,
.trigger_actions .actions div:hover {
  background-color: #e6f7ff;
  border-color: #0073aa;
  color: #0073aa;
}
@media (max-width: 768px) {
  .trigger_actions {
      flex-direction: column;
  }

  .trigger_actions > div {
      flex: 1 1 100%;
  }
}
.ai-model-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}
.ai-model-name {
  flex-grow: 1;
  font-size: 0.9rem;
  color: #333333;
}
.ai-compare-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 0.85rem;
  color: #555555;
  background-color: #e6e6e6;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.ai-compare-button:hover {
  background-color: #d4d4d4;
  color: #000000;
}
.ai-compare-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.aiomatic-chat-holder {
  position: relative;
}
.aiomatic-chat-holder.blur > *:not(.aiomatic-chatbot-overlay) {
  filter: blur(5px);
  pointer-events: none; 
}
.aiomatic-chatbot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999; 
}
.aiomatic-overlay-content {
  text-align: center;
  max-width: 500px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.aiomatic-overlay-content p {
  margin-bottom: 20px;
}
.aiomatic-consent-checkbox {
  margin-right: 10px;
}
.aiomatic-start-chatting-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #55a7e2;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.aiomatic-start-chatting-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.chat-logs-menu {
  margin-bottom: 15px;
  position: relative;
}
.chat-logs-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  transform: translateX(-20%); 
  z-index: 1000;
  background-color: #ffffff;
  border: 1px solid #e1e3e6;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 0;
  width: 200px;
  max-width: 200px!important;
  z-index: 1000;
  display: none;
}
.chat-logs-dropdown.cr_visible {
  display: block; 
}
.date-group-label
{
  text-align: center;
  font-weight: bold;
}
.chat-log-new
{
  text-align: center;
  font-weight: bold;
}
.chat-logs-dropdown {
  max-height: 400px; 
  overflow-y: auto; 
  scrollbar-width: thin;
  scrollbar-color: #888 #f0f0f0; 
}
.chat-logs-dropdown::-webkit-scrollbar {
  width: 8px;
}
.chat-logs-dropdown::-webkit-scrollbar-track {
  background: #f0f0f0;
}
.chat-logs-dropdown::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}
.chat-logs-dropdown::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}
.chat-log-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #e1e3e6;
  font-size: 14px;
}
.chat-log-item:last-child {
  border-bottom: none;
}
.chat-log-item:hover {
  background-color: #f7f7f9;
}
.chat-log-item {
  position: relative;
  padding-right: 30px; 
  margin-bottom: 10px;
}
.aiomatic-remove-item {
  position: absolute;
  right: 10px; 
  top: 50%; 
  transform: translateY(-50%);
  color: rgba(214, 70, 70, 0.7); 
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.7; 
}
.aiomatic-remove-item:hover {
  color: rgb(214, 70, 70); 
  opacity: 1; 
  transform: translateY(-50%) scale(1.2);
}
.aiomatic-jumping-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
  animation: aiomatic-jump 2s infinite;
}
.aiomatic-jumping-dots .aiomatic-dot-1{
  -webkit-animation-delay: 200ms;
  animation-delay: 200ms;
}
.aiomatic-jumping-dots .aiomatic-dot-2{
  -webkit-animation-delay: 400ms;
  animation-delay: 400ms;
}
.aiomatic-jumping-dots .aiomatic-dot-3{
  -webkit-animation-delay: 600ms;
  animation-delay: 600ms;
}
.aiomatic-jumping-dots span {
  margin-right: 4px;
}
.aiomatic-jumping-dots span:last-child {
  margin-right: 0;
}
@-webkit-keyframes aiomatic-jump {
  0%   {bottom: 0px;}
  20%  {bottom: 5px;}
  40%  {bottom: 0px;}
}
@keyframes aiomatic-jump {
  0%   {bottom: 0px;}
  20%  {bottom: 5px;}
  40%  {bottom: 0px;}
}
.code-form-top-pad{padding-top: 10px;}
.aiomatic-window {
  position: fixed;
  right: 0px;
  padding-right: 20px;
  padding-left: 20px;
  bottom: 30px;
  width: var(--aiomatic-width);
  z-index: 9999;
}
.aiomatic-window .aiomatic-header {
  display: none;
  justify-content: flex-end;
  align-items: center;
}
.aiomatic-window .aiomatic-header .aiomatic-buttons {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.aiomatic-window .aiomatic-header .aiomatic-buttons .aiomatic-resize-button {
  justify-content: center;
  height: 32px;
  width: 33px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--aiomatic-backgroundSecondaryColor);
  border-radius: var(--aiomatic-borderRadius);
}
.aiomatic-window .aiomatic-header .aiomatic-buttons .aiomatic-resize-button:before {
  transition: all 0.2s ease-out;
  content: ' ';
  cursor: pointer;
  position: absolute;
  height: 13px;
  width: 13px;
  opacity: 0.75;
  border: 2px solid var(--aiomatic-headerButtonsColor);
}
.aiomatic-window .aiomatic-header .aiomatic-buttons .aiomatic-resize-button:hover:before {
  width: 16px;
  height: 16px;
}
.aiomatic-window .aiomatic-header .aiomatic-buttons .aiomatic-close-button {
  margin-left: 5px;
  justify-content: center;
  height: 32px;
  width: 33px;
  cursor: pointer;
  background-color: var(--aiomatic-backgroundSecondaryColor);
  border-radius: var(--aiomatic-borderRadius);
}
.aiomatic-window .aiomatic-header .aiomatic-buttons .aiomatic-close-button:before {
  transition: all 0.2s ease-out;
  transform: translate(16px, 5px) rotate(45deg);
}
.aiomatic-window .aiomatic-header .aiomatic-buttons .aiomatic-close-button:after {
  transition: all 0.2s ease-out;
  transform: translate(16px, 5px) rotate(-45deg);
}
.aiomatic-window .aiomatic-header .aiomatic-buttons .aiomatic-close-button:before, .aiomatic-window .aiomatic-header .aiomatic-buttons .aiomatic-close-button:after {
  content: ' ';
  cursor: pointer;
  position: absolute;
  height: 22px;
  width: 2px;
  background-color: var(--aiomatic-headerButtonsColor);
  opacity: 0.75;
}
.aiomatic-window .aiomatic-header .aiomatic-buttons .aiomatic-close-button:hover:before {
  opacity: 1;
  transform: translate(16px, 5px) rotate(135deg);
}
.aiomatic-window .aiomatic-header .aiomatic-buttons .aiomatic-close-button:hover:after {
  opacity: 1;
  transform: translate(16px, 5px) rotate(45deg);
}
.aiomatic-window .aiomatic-content {
  display: none;
  opacity: 0;
  max-height: var(--aiomatic-maxHeight);
}
.aiomatic-window.aiomatic-bottom-left {
  bottom: 30px;
  right: inherit;
  left: 0px;
  padding-left: 30px;
  padding-right: 30px;
}
.aiomatic-window.aiomatic-bottom-left .aiomatic-open-button {
  right: inherit;
  left: 0;
}
.aiomatic-window.aiomatic-top-right {
  top: 30px;
  bottom: inherit;
  right: 0px;
  padding-right: 30px;
  padding-left: 30px;
}
.aiomatic-window.aiomatic-top-right .aiomatic-open-button {
  top: 0;
  bottom: inherit;
}
.aiomatic-window.aiomatic-top-left {
  top: 30px;
  bottom: inherit;
  right: inherit;
  left: 0px;
  padding-left: 30px;
  padding-right: 30px;
}
.aiomatic-window.aiomatic-top-left .aiomatic-open-button {
  top: 0;
  bottom: inherit;
  right: inherit;
  left: 0;
}
.aiomatic-close-button
{
  font-size: 20px;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.aiomatic-open-button
{
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.ai-chat {
  display: block;
  padding: 20px;
  overflow:scroll;
  overflow-x:hidden;
  overflow-y: auto;
  height: 100%;
  max-height: 500px;
}
.chat-form-control {
  max-height: 90px;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  background-color: #f7f7f9;
  border-color: #e1e3e6;
  box-shadow: none;
  width: 100%!important;
  max-width: 100%!important;
  transition: box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out;
  resize: vertical;
}
.chat-form-control:focus {
  border-color: #55a7e2;
  box-shadow: 0 0 0 0.2rem rgba(85, 167, 226, 0.25);
}
.ai-bubble
{
  cursor: pointer;
  word-break: break-word;
}
.ai-chat .ai-bubble {
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  max-width: 100%;
}
.ai-chat .ai-bubble.ai-mine {
  background-color: #0084ff;
  color: white;
}
.ai-chat .ai-bubble.ai-other {
  background-color: #f0f0f0;
  color: black;
}
#aiomatic_image_instruction {
  float: left; 
  width: 100%;
  margin-top: 10px; 
  background-color: white; 
}
.aiomatic-image-textarea
{
  margin-bottom: 10px;
}
.aiomatic-edit-textarea {
  width: 100%;
  padding: 12px 20px; 
  box-sizing: border-box;
  border: 1px solid #ccc; 
  border-radius: 4px; 
}
.aiomatic-image-instruction-area {
  width: 100%; 
  padding: 12px 20px; 
  box-sizing: border-box; 
  border: 1px solid #ccc; 
  border-radius: 4px; 
}
#aiomatic_edit_input {
  float: left;
  width: 50%; 
  margin-top: 10px; 
  background-color: white; 
}
#aiomatic_edit_instruction {
  float: left;
  width: 50%;
  margin-top: 10px; 
  background-color: white;
}
#aiomatic_edit_result {
  float: left;
  width: 50%;
  margin-top: 10px; 
  background-color: white;
}
#aiomatic_edit_response {
  float: right;
  width: 100%;
  margin-top: 10px; 
  background-color: #f8f8f8;
}
.openai-ai-form {
    max-width: 800px;
    margin: 0 auto;
}
.openai-ai-form .form-group {
    margin-bottom: 1rem;
}
.openai-ai-form-alt {
    max-width: 800px;
    margin: 0 auto;
}
.openai-ai-form-alt .form-group {
    margin-bottom: 1rem;
}
.form-group
{
  margin-bottom:5px;
}
@media all and (max-width: 800px) {
  .form-group
  {
    display:grid;
  }
  .aiomatic-edit-textarea
  {
    width: 100%!important;
  }
}
.ai-writing-icon {
    animation: writing 1s infinite;
}
.aiomatic-ai-input
{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    box-shadow: none;
    -webkit-box-shadow: none;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px 10px 15px;
    outline: none;
    font-weight: normal;
    border: 1px solid rgba(45, 45, 45, 0.3);
    background-color: transparent;
    color: #333333;
}
@keyframes writing {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(10px);
    }
}
.openai-ai-form .form-control {
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    background-color: #f7f7f9;
    border-color: #e1e3e6;
    box-shadow: none;
    transition: box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out;
    resize: vertical;
    min-height: 250px;
}
.openai-ai-form-alt .form-control {
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    background-color: #f7f7f9;
    border-color: #e1e3e6;
    box-shadow: none;
    transition: box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out;
    resize: vertical;
    min-height: 250px;
}
.speech-to-text-container {
    position: absolute;
    top: 0;
    right: 0;
}
.highlight-text-fail {
    color: #dc3545; 
    font-weight: bold;
    font-size: 12px;
}
.highlight-text {
    font-weight: bold;
    font-size: 12px;
}
.highlight-green {
    background-color: #d2f4d3;
    color: #000000;
    padding: 0.2em;
}
.openai-ai-form .form-control:focus {
    border-color: #55a7e2;
    box-shadow: 0 0 0 0.2rem rgba(85, 167, 226, 0.25);
}
.openai-ai-form-alt .form-control:focus {
    border-color: #55a7e2;
    box-shadow: 0 0 0 0.2rem rgba(85, 167, 226, 0.25);
}
[contenteditable=true]:empty:before{
    content: attr(placeholder);
    pointer-events: none;
    display: block; 
}
#aiomatic_input {
    overflow: auto;
    min-height: 250px;
    resize: vertical;
}
#aiomatic_input {
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    background-color: #f7f7f9;
    border-color: #e1e3e6;
    box-shadow: none;
    transition: box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out;
    overflow: auto;
    min-height: 250px;
    resize: vertical;
}
#aiomatic_input:focus {
    border-color: #55a7e2;
    box-shadow: 0 0 0 0.2rem rgba(85, 167, 226, 0.25);
}
.openai-ai-form .btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.openai-ai-form .btn:hover {
    color: #212529;
    background-color: #e2e6ea;
    border-color: #dae0e5;
}
.openai-ai-form .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(238, 238, 238, 0.5);
}
.openai-ai-image-form .btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.openai-ai-image-form .btn:hover {
    color: #212529;
    background-color: #e2e6ea;
    border-color: #dae0e5;
}
.openai-ai-image-form .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(238, 238, 238, 0.5);
}
.openai-ai-form-alt .btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.openai-ai-form-alt .btn:hover {
    color: #212529;
    background-color: #e2e6ea;
    border-color: #dae0e5;
}
.openai-ai-form-alt .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(238, 238, 238, 0.5);
}
.cr_image_center
{
    text-align: center;
}
.openai-ai-form .btn-primary {
    color: #fff;
} 
.openai-ai-form .btn-primary:hover {
    color: #fff;
} 
.openai-ai-form .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(85, 167, 226, 0.5);
}
.openai-ai-form-alt .btn-primary {
    color: #fff;
    background-color: #55a7e2;
    border-color: #55a7e2;
} 
.openai-ai-form-alt .btn-primary:hover {
    color: #fff;
    background-color: #3f92d2;
    border-color: #3f92d2;
} 
.openai-ai-form-alt .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(85, 167, 226, 0.5);
}
#openai-response {
    margin-top: 1rem;
}
#openai-response .spinner-border {
    width: 2rem;
    height: 2rem;
    min-height: 2rem;
}
.workflow {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.workflow td {
  padding: 20px;
}
.workflow h2 {
  font-size: 20px;
  font-weight: bold;
  color: #0073aa;
  margin-bottom: 15px;
}
.workflow p label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
  font-weight: 600;
  position: relative;
}
.workflow input[type="text"],
.workflow input[type="number"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}
.workflow input[type="text"]:focus,
.workflow input[type="number"]:focus {
  border-color: #0073aa;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
}
#add-workflow
{
  margin-top: 30px;
}
.center_p_element
{
  display: flex;
  justify-content: center;
  align-items: center;
}
.workflow input[type="checkbox"] {
  transform: scale(1.2);
  margin-left: 5px;
}
.bws_help_box:hover .bws_hidden_help_text {
  visibility: visible;
  opacity: 1;
}
.trigger_actions {
  margin-top: 20px;
}
.delete-workflow {
  display: inline-block;
  background-color: #dc3232;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.delete-workflow:hover {
  background-color: #a82828;
  transform: scale(1.05);
}
.add-workflow {
  display: inline-block;
  border: none;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.add-workflow:hover {
  transform: scale(1.05);
}
.workflow hr {
  border: none;
  height: 1px;
  background-color: #ddd;
  margin: 20px 0;
}
@media (max-width: 768px) {
  .workflow td {
      padding: 15px;
  }

  .workflow h2 {
      font-size: 18px;
  }
}
