:root {
  --main: #06233c;
  --text-msg: black;
  --message: #fff;
  --bot-message: #e7f8ff;
  --gradient: #fff;
  --main-bg: #e5edf3;
  --main-text: #000
}

@media (prefers-color-scheme: dark) {
  :root {
    --main: #06233c;
    --text-msg: white;
    --message: #4788b9;
    --bot-message: #075288;
    --gradient: #0a1e2c;
    --main-bg: #081a27;
    --main-text: #fff;
  }
}
.bot-main-container #logoFata{
  position: fixed;
  left: 20px;
  top:20px;
  filter:brightness(100);
  z-index: 0;
  pointer-events: none;
  width: 12.9%;
  height: auto;
}


.bot-main-container {
  width: 550px;
  max-width: 100%;
  height: 95vh;
  max-height: 800px;
  overflow-y: hidden;
  border-radius: 5px;
  display: block;
}

.bot-main-container a {
  color:#70b5f2
}

.bot-main-container a:hover {
  color:#9bc9f0
}

.bot-main-container .chat-history {
  max-height: 80%;
  overflow-y: scroll;
  -ms-overflow-style: none;
  /* IE ed Edge */
  scrollbar-width: none;
  /* Firefox */
}

.bot-main-container .chat-history::-webkit-scrollbar {
  display: none;
}

.bot-main-container .history-overflow {
  width: 90%;
  text-overflow: ellipsis;
  overflow: hidden;
}

.bot-main-container .feedback-container {
  /* display: none; */
  visibility: hidden;
  width: 70% !important;
  gap: 10px;
  background: #fff;
  font-size: .9rem;
  padding: 5px;
  position: absolute;
  bottom: -35px;
  border-radius: 10px;
  box-shadow: 0 0 10px #0001;
  right: 20px;
}

.bot-main-container .completed.message:hover .feedback-container {
  display: flex;
  visibility: visible;
}

.bot-main-container .feedback-container a {
  font-size: .8rem;
  padding: 5px;
}

.bot-main-container .navbar {
  background-color: var(--main) !important;
  z-index: 1040;
}

.bot-main-container .sidebar {
  background-color: #033560 !important;
  color: #fff;
  height: 100%;
  position: relative;
  left: 0%;
  overflow-y: scroll;
  transition: all 0.3s;
  -ms-overflow-style: none;
  /* IE ed Edge */
  scrollbar-width: none;
  /* Firefox */
  position: fixed;
  z-index: 1090;
  width: 50%;
  padding: 10px;
  box-shadow: 30px 0px 30px #0003;
}

.bot-main-container button:focus {
  outline: 1px solid #fff4;
  outline: 5px auto -webkit-focus-ring-color;
  border-radius: 5px;
}

.bot-main-container .message-box,
.bot-main-container .welcome-title {
  color: var(--text-msg);
  word-break: break-word;
  white-space: break-spaces;
}

.bot-main-container pre code {
  color: var(--text-msg);
}

/* Per nascondere la scrollbar delle chat su Chrome, Opera e Safari */
.bot-main-container .sidebar::-webkit-scrollbar {
  display: none;
}

.bot-main-container .collapsed-sidebar {
  position: relative;
  left: -100%;
  display: none;
}

.bot-main-container .sidebar-header {
  padding: 20px;
  text-align: center;
}

.bot-main-container .sidebar-menu {
  list-style: none;
  padding: 0;
}

.bot-main-container .sidebar-menu li {
  padding: 10px 20px;
  border-bottom: 1px solid #555;
}

.bot-main-container .sidebar-menu li:last-child {
  border-bottom: none;
}

/* Area chat */
.bot-main-container .chat-area {
  position: relative;
  /* Per consentire la posizione assoluta */
  height: 100%;
}

.bot-main-container .main-chat-container {
  background-color: var(--main-bg);
}

.bot-main-container .message {
  margin-left: 10%;
  background-color: var(--message);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
  margin-top: 20px;
  border: 1px solid #0001;
  position: relative;
}

.bot-main-container .message.ai {
  width: 90%;
  background: var(--bot-message);
  margin-left: 0;
  z-index: 1;
}

/* Barra di input */
.bot-main-container .input-bar {
  background: rgb(255, 255, 255);
  background: linear-gradient(0deg,
      var(--gradient) 0%,
      rgba(255, 255, 255, 0) 100%);
  padding: 15px;

  position: absolute;
  bottom: 0;
  width: 100%;
  right: 0;
}

.bot-main-container .user-input {
 
  resize: none;
  min-height: 50px;
  max-height: 150px;
  width: 100%;
  padding: 20px;
  padding-right: 50px;
  border: 0;
  z-index: 1000;
  top: 1px;
  -ms-overflow-style: none;
  /* IE ed Edge */
  scrollbar-width: none;
  /* Firefox */
}


.bot-main-container .user-input::-webkit-scrollbar {
  display: none;
}

.bot-main-container .user-input:focus {
  outline: none;
}

.bot-main-container .user-input-ctn{
  border-radius: 10px;
  background: white !important;
  box-shadow: 0 9px 20px #0002;
  width: 100%;
  overflow: hidden;
}

/* Bottone per collassare/espandere la barra laterale */
.bot-main-container .toggle-sidebar {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  border: 0;
}

.bot-main-container .error-span {
  color: #f83a3a;
  padding: 4px;
  font-weight: bold;
  background: #ff000021;
  font-size: .8rem;
  border-radius: 5px;
  margin-left: 5px;
}

.bot-main-container .btn-bot {
  background: transparent;
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  padding: .375rem .75rem;
  font-size: .9375rem;
  line-height: 1.5;
  border-radius: 0;
  -webkit-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  -o-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.bot-main-container .btn-bot-primary {
  color: #fff;
  background-color: #1177d1;
  border-color: #1177d1;
  border-radius: 5px;
}

.bot-main-container .btn-icon {
  padding: 0;
    background: transparent;
  
  
}

.bot-main-container .btn-icon.confirm{
color: rgb(152, 236, 152);


}
.bot-main-container .btn-icon.cancel{
  color: rgb(241, 151, 123);
  font-size: 1.2rem;
  }
  

.bot-main-container .message-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #fff3;
  padding: 12px;
  text-overflow: ellipsis;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 4px;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}

.bot-main-container .message-history-item:hover {
  background-color: #fff2;
}
.bot-main-container .message-history-item.active {
  background-color: #fff2;
}

.bot-main-container .skeleton-header,
.bot-main-container .skeleton-content {
  height: 20px;
  /* Altezza delle righe dello scheletro */
  margin: 10px 0;
  /* Spazio tra le righe */
  background: linear-gradient(90deg,
      #f4f4f4 25%,
      #e0e0e0 50%,
      #f4f4f4 75%);
  /* Animazione a strisce */
  background-size: 200% 100%;
  /* Larghezza dell'animazione */
  animation: loading 1.5s infinite;
  /* Animazione continua */
}


.bot-main-container .chat-main-page {
  height: 85%;
  overflow-x: hidden;
  overflow-y: scroll;
  padding-top: 60px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/**
* ==============================================
* Dot Flashing
* ==============================================
*/
.dot-flashing {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #9880ff;
  color: #9880ff;
  animation: dot-flashing 1s infinite linear alternate;
  animation-delay: 0.5s;
}

.dot-flashing::before,
.dot-flashing::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
}

.dot-flashing::before {
  left: -15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #9880ff;
  color: #9880ff;
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 0s;
}

.dot-flashing::after {
  left: 15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #80b7ff;
  color: #80b7ff;
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 1s;
}

.stage {
  float: right;
}

.dots-col {
  position: absolute;
  right: 25px;
  top: 5px;
}

@keyframes dot-flashing {
  0% {
    background-color: #80b7ff;
  }

  50%,
  100% {
    background-color: rgba(128, 183, 255, 0.2);
  }
}

.slide-in-left {
  -webkit-animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* ----------------------------------------------
* Generated by Animista on 2023-9-28 9:32:57
* Licensed under FreeBSD License.
* See http://animista.net/license for more info.
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */

/**
* ----------------------------------------
* animation slide-in-left
* ----------------------------------------
*/
@-webkit-keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-1000px);
    transform: translateX(-1000px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-1000px);
    transform: translateX(-1000px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  -webkit-animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* ----------------------------------------------
* Generated by Animista on 2023-9-28 10:18:36
* Licensed under FreeBSD License.
* See http://animista.net/license for more info.
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */

/**
* ----------------------------------------
* animation slide-in-right
* ----------------------------------------
*/
@-webkit-keyframes slide-in-right {
  0% {
    -webkit-transform: translateX(1000px);
    transform: translateX(1000px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-right {
  0% {
    -webkit-transform: translateX(1000px);
    transform: translateX(1000px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

.apri-iframe-bot, .bot-main-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: 2px 2px 25px 20px #0006;
  border: 1px solid #075288 !important;

}

.apri-iframe-bot {
  position: fixed;
  bottom: 30px;
  right: 30px;
  box-shadow: none;
  border: 0px solid #075288 !important;
  
}

.apri-iframe-bot {
  padding: 0px;
  color: #fff;
  text-decoration: none;
  border-radius: 55px;
  z-index: 1060;
  width: 75px;
  height: 75px;
  -webkit-animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
  animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.apri-iframe-bot:hover {
 
}

.bot-main-container {
  display: none;
  border: none;
  z-index: 1061;
}


.bot-main-container .messages-counter {
  width: 100%;
  display: block;
  font-size: .8rem;
  color: #888;
  position: relative;
  top: 10px;
}

.bot-main-container .chat-main-page {
  position: relative;
}

.slide-in-bottom {
  -webkit-animation: .5s cubic-bezier(.25, .46, .45, .94) both slide-in-bottom;
  animation: .5s cubic-bezier(.25, .46, .45, .94) both slide-in-bottom
}

.fade-in {
	-webkit-animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
	        animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.slide-out-bottom {
	-webkit-animation: slide-out-bottom 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
	        animation: slide-out-bottom 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}
/* ----------------------------------------------
 * Generated by Animista on 2023-10-30 11:53:45
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation slide-out-bottom
 * ----------------------------------------
 */
 @-webkit-keyframes slide-out-bottom {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(1000px);
            transform: translateY(1000px);
    opacity: 0;
  }
}
@keyframes slide-out-bottom {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(1000px);
            transform: translateY(1000px);
    opacity: 0;
  }
}

/* ----------------------------------------------
 * Generated by Animista on 2023-10-30 9:59:57
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation fade-in
 * ----------------------------------------
 */
 @-webkit-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


@-webkit-keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
    transform: translateY(1000px);
    opacity: 0
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1
  }
}

@keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
    transform: translateY(1000px);
    opacity: 0
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1
  }
}

@media screen and (max-width:768px) {
  .apri-iframe-bot{
    width: 55px;
    height: 55px;
  }
  .bot-main-container {
    bottom: 0px;
    right: 0px;
  }
}

.bot-main-container #popup {
  display: none;
  position: fixed;
  font-size: 12px;
  color: #fff;
  font-weight: bold;
  padding: 2px;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 3px;
  background-color: #97929267;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}
