#chat {
  float: right;
  width: 400px;
  position: fixed;
  bottom: 0;
  right: 0;
  /* align-content: end; */
  max-height: 595pc;
  height: 595px;
  z-index: 12;
}

.chatmsg {
  background-color: #007dc6;
  color: #fff;
  border-radius: 10px;
  max-width: 75%;
  min-width: 30%;
  padding: 0.5rem;
  width: 100%;
}

.chatmsgbot {
  background-color: #ffbf00;
  color: #333;
  border-radius: 10px;
  padding: 0.5rem;
  width: 100%;
}

.chatmsg img {
  margin: 0 auto;
}

.r {
  float: right;
}

.r a {
  color: #fff;
}

.l {
  float: left;
  background-color: #dadadac4;
  color: #727272;
  border: 1px solid #8888882e;
}

.l a {
  color: #007dc6;
}

#textChat {
  background-color: #eee;
  border-radius: 5px;
  border: none;
}

.msgc {
}

#textChat::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #333;
  opacity: 1;
  /* Firefox */
}

#chatCorpo {
  overflow-x: hidden;
  overflow-y: scroll;
  height: 370px;
}

.blob {
  background: black;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);

  transform: scale(1);
  animation: pulse-black 2s infinite;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #007dc6;
  --bs-btn-border-color: #007dc6;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #006dac;
  --bs-btn-hover-border-color: #006dac;
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0290e2;
  --bs-btn-active-border-color: #0290e2;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #007dc6;
  --bs-btn-disabled-border-color: #007dc6;
}

.selectedRetry {
  background-color: orange !important;
}

.replyC {
  background-color: rgba(0, 0, 0, 0.125);
  border-left: 2px solid white;
  border-radius: 5px;
  padding: 5px;
  font-size: 0.7rem;
  cursor: pointer;
}

.navbar-menu-wrapper {
  border-bottom: 1px solid #ccc;
}

#sidebar {
  top: 0;
  z-index: 3000;
}

/* #divlogo,
[type="button"] span {
    color: white;
    padding: 50px 13px;
    height: 100%;
} */

#divlogo,
.tbn span {
  color: white;
  padding: 50px 13px;
  height: 100%;
}

#divlogo .sidebar {
  background-color: #007dc6 !important;
}

#divlogo {
  height: 100px;
  /* padding: 0 !important; */
}

.sidebar {
  position: absolute;
}

.fixador {
  position: fixed;
  top: 35px;
  cursor: pointer;
  left: 174px;
  padding: 15px;
  color: #fff;
  z-index: 3001;
}

.fixar {
  transform: rotate(-45deg);
}

#pesquisaContainer {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#inputPesquisa {
  border-radius: 4px 0 0 4px;
  border: 1px solid #007dc6;
  padding: 8px 12px;
}

#pesquisaContainer .btn {
  border-radius: 0;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pesquisaContainer .btn:first-of-type {
  border-radius: 0 4px 4px 0;
}

#pesquisaContainer .btn-primary {
  background-color: #007dc6;
  border-color: #007dc6;
}

#pesquisaContainer .btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  margin-left: 2px;
  border-radius: 4px !important;
}

.bi-search,
.bi-x {
  transition: all 0.3s ease;
  color: #ffffff;
  font-size: 1rem;
}

.bi-search:hover,
.bi-x:hover {
  transform: scale(1.1);
}

.highlight {
  background-color: #fff3cd;
  color: #856404;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: bold;
}

#chat {
  height: calc(100vh - 97px) !important;
  max-height: none !important;
}

/* #chatCorpo {
  height: calc(100% - 120px) !important;
} */

#chat.expanded {
  right: 300px !important;
  left: 40px !important;
  width: calc(100% - 440px) !important;
}

.settings-panel-new.chat-expanded {
  right: 0 !important;
  left: auto !important;
  width: 400px !important;
  border-left: 1px solid #dee2e6;
  border-radius: 0 !important;
}

/* Botões para mensagens da esquerda (lado l) */
.chatmsg.l .btn-outline-primary {
  border-color: #007bff;
  color: #007bff;
}

.chatmsg.l .btn-outline-primary:hover {
  background-color: #007bff;
  color: white;
}

.chatmsg.l .btn-outline-success {
  border-color: #28a745;
  color: #28a745;
}

.chatmsg.l .btn-outline-success:hover {
  background-color: #28a745;
  color: white;
}

/* Botões para mensagens da direita (lado r) */
.chatmsg.r .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.chatmsg.r .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Garantir que o texto dos arquivos fique visível no lado direito */
.chatmsg.r .file-container,
.chatmsg.r .file-container small,
.chatmsg.r .file-container i {
  color: white !important;
}

.highlight-termo {
  background-color: #fff3cd;
  color: #856404;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: bold;
}

.highlight-active {
  background-color: #ffc107 !important;
  color: #000 !important;
  box-shadow: 0 0 0 2px #ffc107;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 193, 7, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

#navPesquisaButtons {
  position: absolute;
  /* margin-right: 10px; */
  /* padding: 2px 8px; */
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  border: 1px solid #dee2e6;
  z-index: 999;
  width: 150px;
  right: 0;
  top: 100px;
}

#contadorPesquisa {
  font-size: 0.75em !important;
  min-width: 40px;
  text-align: center;
}

.msgc p {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 0;
}

.chatmsg .msgc br {
  display: block;
  content: '';
  margin-bottom: 5px;
}

.message-footer {
  margin-top: 5px;
  padding-top: 5px;
  /* border-top: 1px solid rgba(0, 0, 0, 0.05); */
}

.editado-indicator {
  color: #ccc;
  font-style: italic;
  font-size: 10px;
  margin-left: 8px;
}

.chatmsg.r .message-footer {
  justify-content: flex-end;
}

.chatmsg.r .editado-indicator {
  margin-left: 0;
  margin-right: 8px;
}

.chatmsg.l .message-footer {
  justify-content: flex-start;
}

.chatmsg.editando {
  opacity: 0.7;
  border-left: 3px solid #ffc107;
  transition: all 0.3s ease;
}
