
#data-container{
    height: 92%;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 10px;
}

#chat_container{
  margin: 0;
}

#api-key{
  width: 60%;
  height: auto;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  background-color: rgba(0, 0, 0, 0.231);
}

.pt_mobile{
  display: none;
}


.message{
    padding: 20px;
    max-width: 60%;
    width: fit-content;
    margin: 10px 0;
    color: white;
    text-align: justify;
    overflow-wrap: break-word;
}

.bot-message{
    margin-right: auto;
    background-image: linear-gradient( to left, #062058, #031335);
    border-radius: 8px 8px 8px 0;
}

.human-message{
    margin-bottom: auto;
    margin-left: auto;
    background-image: linear-gradient(to right, #072b77 ,#0A3798 );
    border-radius: 8px 0 8px 8px;
    & i{
        margin-left: 12px;
    }
}

.bot-resoning{
  padding: 0px !important;
}

.tool-message{
  padding: 5px !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 500px !important;
  background-image: linear-gradient( to right, #062058, #031335);
}

.actual-step{
  background-image: linear-gradient(to right, #062058a8, #031335ab);
  padding: 20px;
  border-radius: 8px 8px 8px 0;

  position: relative;
  overflow: hidden; /* pra shimmer não vazar nas bordas */
}

/* SHIMMER: brilho passando por cima do gradiente */
.actual-step[data-loading="true"]::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.10) 45%,
    rgba(255,255,255,.18) 50%,
    rgba(255,255,255,.10) 55%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shine 1.1s ease-in-out infinite;
}

.actual-step .step{
  padding: 10px;
  border-radius: 4px;
  min-height: 16px;
}

.actual-step[data-loading="true"] .step{
  border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.18),
    rgba(255,255,255,.08)
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}
.actual-step[data-loading="true"] .step::before{ width: 70%; }
.actual-step[data-loading="true"] .step::after { width: 40%; margin-top: 6px; }

@keyframes shimmer{
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes shine{
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* resoning */

iframe{
  border-radius: 8px;
}



i{
    font-size: 25px;
}

.message-wrapper{
    display: flex;
}


.human-wrapper{
    & i{
        margin-left: 12px;

    }
}

.bot-wrapper{
    & i{
        margin-right: 12px;
        height: fit-content;
        margin-top: auto;
    }
}



.typing-indicator {
    width: 60px;
    height: 30px;
    position: relative;
    z-index: 4;
  }
  
  .typing-circle {
    width: 8px;
    height: 8px;
    position: absolute;
    border-radius: 50%;
    background-color: white;
    left: 15%;
    transform-origin: 50%;
    animation: typing-circle7124 0.5s alternate infinite ease;
  }
  
  @keyframes typing-circle7124 {
    0% {
      top: 20px;
      height: 5px;
      border-radius: 50px 50px 25px 25px;
      transform: scaleX(1.7);
    }
  
    40% {
      height: 8px;
      border-radius: 50%;
      transform: scaleX(1);
    }
  
    100% {
      top: 0%;
    }
  }
  
  .typing-circle:nth-child(2) {
    left: 45%;
    animation-delay: 0.2s;
  }
  
  .typing-circle:nth-child(3) {
    left: auto;
    right: 15%;
    animation-delay: 0.3s;
  }
  
  .typing-shadow {
    width: 5px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 30px;
    transform-origin: 50%;
    z-index: 3;
    left: 15%;
    filter: blur(1px);
    animation: typing-shadow046 0.5s alternate infinite ease;
  }
  
  @keyframes typing-shadow046 {
    0% {
      transform: scaleX(1.5);
    }
  
    40% {
      transform: scaleX(1);
      opacity: 0.7;
    }
  
    100% {
      transform: scaleX(0.2);
      opacity: 0.4;
    }
  }
  
  .typing-shadow:nth-child(4) {
    left: 45%;
    animation-delay: 0.2s;
  }
  
  .typing-shadow:nth-child(5) {
    left: auto;
    right: 15%;
    animation-delay: 0.3s;
  }

@media screen and (max-width: 1300px) {
  #chat_container{
    width: 100%;
  }


  #api-key{
    width: 100% !important;
  }

  .page_title{
    font-size: 50px !important;
  }
}



@media screen and (max-width: 520px) {
  #over_bg{
    padding: 0 !important;
  }
  #chat_container{
    height: 100%;
    border-radius: 0;
    padding: 12px;
    padding-top: 60px;
    backdrop-filter: none !important;

  }
  

  #data-container{
    height: 90%;
  }
  .chat_elements{
      backdrop-filter: blur(5px) !important;

  }

  .pt_desktop{
    display: none;
  }

  .pt_mobile{
    display: block !important;
    position: absolute !important;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -55px !important;
    width: 80%;
  }

  .message{
    max-width: 86%;
    padding: 13px;
    font-size: 12px;
  }
  .bot-message{
    border-radius: 12px 12px 12px 0;
  }

  .human-message{
    border-radius: 12px 0 12px 12px;
  }

  
  .message-wrapper i{
    font-size: 15px;
  }

  .bot-wrapper i{
    margin-right: 5px;
  }

  .human-wrapper i{
    margin-left: 5px;
  }
  
  
}


