/* Transiciones y animaciones */
@keyframes blink {
  0%, 20% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#chatBody {
  text-align: left; /* Asegura que el contenido se alinee a la izquierda */
  padding: 10px; /* Opcional: mejora la presentación */
}

/* ===== BOTONES DE CABECERA ===== */
#themeToggle, 
#languageButton, 
#close-button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #006f32;
  background-size: 18px 18px;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

/* Botón de cambiar idioma */
#languageButton {
  background-image: url('../assets/Images/language-white.svg');
  background-size: 14px;
}

/* Botón de cambiar tema */
#themeToggle {
  background-image: url('../assets/Images/LightbulbOn-Green1.svg');
}

#themeToggle.dark-mode {
  background-image: url('../assets/Images/LightbulbOff-Green1.svg');
}

/* Botón de cerrar */
#close-button {
  background-image: url('../assets/Images/minimizeWhite.svg');
}

/* Hover para los botones del header */
#themeToggle:hover, 
#languageButton:hover, 
#close-button:hover {
  background-color: #00973a;
  transform: scale(1);
  opacity: 0.8;
}

#languageButton:hover {
  background-image: url('../assets/Images/language-white.svg');
}

#themeToggle:hover {
  background-image: url('../assets/Images/LightbulbOn-White.svg');
}

#themeToggle.dark-mode:hover {
  background-image: url('../assets/Images/LightbulbOff-White.svg');
}

#close-button:hover {
  background-image: url('../assets/Images/minimizeGreen.svg');
}

/* ===== CHAT BUBBLE ===== */
#chatBubble {
  position: fixed;
  bottom: 10px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #006f32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: width 0.2s ease, height 0.2s ease, bottom 0.2s ease, right 0.2s ease;
  z-index: 10000 !important; /* Aumentado para estar por encima de #customButton (9999) */
}

#chatBubble:hover {
  width: 60px;    
  height: 60px;   
  bottom: 10px;   
  right: 18px;    
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.chat-bubble-icon {
  width: 23px;
  height: 23px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;  
}

#chatBubble:hover .chat-bubble-icon {
  transform: scale(1.1);            
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.chat-container {
  position: fixed;
  bottom: 75px;
  right: 20px;
  width: 90%;
  max-width: 400px;
  height: 500px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  border: none;
}

/* ===== HEADER DEL CHAT ===== */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #006f32;
  color: #f8f7f9;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

.incomelec-avatar {
  width: fit-content;
  height: 20px;
}

.incomelec-img {
  width: fit-content;
  height: 23px;
  margin-left: -3px;
}

.incomelec-profile {
  width: 27.5px;
  height: 27.5px;
}

.notification {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4caf50;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  display: none;
  z-index: 10;
  font-size: 12px;
}

/* ===== CUERPO DEL CHAT ===== */
.chat-body {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f9f9f9;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid transparent;
}

.chat-body::-webkit-scrollbar,
.chat-input.form-control::-webkit-scrollbar {
  width: 4px;
}

.chat-body::-webkit-scrollbar-track,
.chat-input.form-control::-webkit-scrollbar-track {
  background: #ffffff00;
  border-radius: 2px;
}

.chat-body::-webkit-scrollbar-thumb,
.chat-input.form-control::-webkit-scrollbar-thumb {
  background: rgba(136, 136, 136, 0.5);
  border-radius: 2px;
}

.chat-body::-webkit-scrollbar-thumb:hover,
.chat-input.form-control::-webkit-scrollbar-thumb:hover {
  background: rgba(85, 85, 85, 0.7);
}

.chat-body,
.chat-input.form-control {
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 136, 136, 0.5) #ffffff00;
}

/* Contenedor dedicado para el spinner */
.spinner-container {
  display: flex;
  align-items: flex-start;
  background-color: #f0f0f000; /* Color gris del área de mensaje */
  padding: 2px; /* Reducir padding para acercar al borde izquierdo */
  border-radius: 5px; /* Ajustar según el diseño del área gris */
  margin: 5px 0; /* Mantener margen vertical */
  justify-content: flex-start; /* Alinear a la izquierda */
}

/* Estilos del spinner dentro del contenedor */
.spinner {
  display: flex;
  align-items: flex-start;
  margin: 0; /* Sin margen adicional */
  padding-left: 0; /* Eliminar padding izquierdo */
  min-height: 20px; /* Mantener altura mínima reducida */
}

.spinner-img {
  width: 15px; /* Mantener tamaño */
  height: 15px; /* Mantener tamaño */
  display: inline-block; /* Alinear con texto */
}

/* ===== MENSAJES ===== */
.bot-message a {
  color: #007bff;
  text-decoration: underline;
  word-break: break-all;
}

.bot-message.error {
  background: #f8d7da;
  color: #721c24;
}

.bot-message {
  background: #e9ecef;
  color: #093a21 !important;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 5px 0;
  max-width: 70%;
  display: flex;
  align-items: flex-start;
  word-wrap: break-word;
  align-self: flex-start;
}

.bot-message .dropdown {
  margin: 5px 0;
}

.bot-message .dropdown, .bot-message button {
  margin: 5px 0;
}

.dropdown-menu {
  min-width: 200px !important; /* Asegura que el ancho sea fijo */
  padding: 0.5rem !important; /* Reducir padding interno */
}

.bot-message img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-right: 8px;
}

.bot-message span {
  flex-grow: 1;
}

.user-message {
  background: #00973a;
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 5px 0;
  max-width: 70%;
  word-wrap: break-word;
  align-self: flex-end;
}

.chat-message {
  font-size: 14px;
}

.typing-indicator {
  background: #e9ecef;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 5px 0;
  max-width: 70%;
  display: flex;
  align-items: center;
  align-self: flex-start;
  font-size: 14px;
  color: #6c757d;
}

.typing-indicator span.dot {
  display: inline-block;
  animation: blink 1s infinite;
}

.typing-indicator span.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span.dot:nth-child(3) {
  animation-delay: 0.4s;
}

.area-dropdown {
  padding: 8px;
  margin: 5px 10px;
  border-radius: 6px;
  border: 2px solid #4a90e2; /* Borde azul */
  font-size: 12px;
  width: 220px;
  background-color: #fff; /* Fondo blanco */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra ligera */
  transition: border-color 0.3s; /* Transición suave */
}

.area-dropdown:hover {
  border-color: #357abd !important; /* Cambio de borde al pasar el mouse */
}

.area-dropdown:focus {
  outline: none;
  border-color: #1e5ba6; /* Borde destacado al enfocar */
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.5); /* Resplandor */
}

.custom-dropdown {
  position: relative;
  margin: 10px 0;
}

.dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 2px solid #00973a;
  border-radius: 6px;
  background-color: #ffffff00;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  max-height: 200px;
  max-width: 180px;
  overflow-y: auto;
}

.dropdown-item {
  color: #093a21 !important;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-item:hover {
  background-color: #e1e8cd !important; /* Fondo verde al pasar el mouse */
}

.dropdown-item.selected {
  background-color: #95c11f;
  font-weight: bold;
}

.dropdown-icon {
  width: 20px; /* Ajusta el tamaño del ícono */
  height: 20px;
  object-fit: contain; /* Asegura que la imagen no se deforme */
}

.icon {
  font-size: 16px;
}

/* ===== OPCIONES DE MENSAJE ===== */
.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
  padding: 5px 0;
  align-self: flex-start;
}

.option-button {
  padding: 4px 10px;
  background-color: #ffffff00; /* Fondo verde */
  color: #00973a;
  border: #00973a solid 1.4px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.option-button:hover {
  font-weight: bold;
  color: #f8f7f9;
  transform: scale(1.05);
  background-color: #00973a; /* Fondo verde */
  border: #f8f7f9 solid 1.4px;
}

.option-button:active {
  font-weight: bold;
  color: #f8f7f9;
  background-color: #00973a; /* Cambio al hacer clic */
}

/* ===== FOOTER DEL CHAT ===== */
.chat-footer {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #f5f5f5;
  margin: 10px;
  flex-shrink: 0;
  min-height: 60px;
  position: relative;
}

.input-row {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  flex-wrap: nowrap;
  gap: 3px;
}

.input-row .chat-input {
  flex-grow: 1;
  margin: 0;
  padding: 8px;
  min-height: 38px;
  box-sizing: border-box;
  border: none;
  background: #ffffff;
}

.chat-input.form-control {
  font-family: Calibri, sans-serif;
  font-size: 14px;
  min-height: 38px;
  max-height: 150px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  resize: none;
  line-height: 1.5;
  overflow-y: hidden;
  border: none;
}

.chat-input.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 151, 58, 0);
  border-color: #ffffff00 !important;
  outline: none;
}

.button-row {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 5px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* ===== BOTONES DE ACCIÓN ===== */
.chat-button.btn,
.voice-button.btn,
.history-button.btn,
.download-button.btn,
.reset-button.btn,
#sendButton.btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border: 1.4px solid #006f32;
  padding: 4px;
  background-color: #ffffff00;
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
  transition: width 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

/* Estilos para el estado :active de los botones del footer */
.voice-button.btn:active,
.history-button.btn:active,
.download-button.btn:active,
.reset-button.btn:active,
#sendButton.btn:active {
  border-color: #95c11f !important; /* Mantener el borde verde */
  outline: none; /* Quitar el contorno predeterminado */
  box-shadow: none; /* Eliminar cualquier sombra no deseada */
  transform: scale(0.98); /* Opcional: pequeño efecto de clic */
}

#sendButton.btn {
  width: 32px;
  height: 32px;
  background-color: #00973a;
  background-size: 11px 11px;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid #ffffff00;
  padding: 0;
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-image: url('../assets/Images/send-white.svg');
}

/* Asegurar que #sendButton mantenga su estilo especial en :active */
#sendButton.btn:active {
  background-color: #007b2f; /* Un verde más oscuro para feedback */
  border-color: #ffffff00; /* Sin borde visible */
  background-image: url('../assets/Images/send-white.svg'); /* Mantener el ícono */
}

#sendButton.btn:disabled {
  background-color: #007b2f;
  opacity: 0.6;
  cursor: default;
  background-image: url('../assets/Images/send-white.svg');
}

#sendButton.btn:hover {
  background-color: #007b2f;
  background-image: url('../assets/Images/send-white.svg');
}

.voice-button.btn { 
  background-image: url('../assets/Images/MicrophoneGreen.svg'); 
}
.voice-button.btn:hover { 
  width: 50px;
  background-image: url('../assets/Images/MicrophoneGreen2.svg');
  background-position: calc(100% - 4px) center;
  border-color: #95c11f;
}
.voice-button.btn:hover::after {
  content: "Voz";
  margin-right: 10px;
  font-size: 10px;
  color: #95c11f;
  white-space: nowrap;
  max-width: 60px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.history-button.btn { background-image: url('../assets/Images/Historygreen.svg'); }
.history-button.btn:hover { 
  width: 72px;
  background-image: url('../assets/Images/Historygreen2.svg');
  background-position: calc(100% - 4px) center;
  border-color: #95c11f;
}
.history-button.btn:hover::after {
  content: "Historial";
  margin-right: 10px;
  font-size: 10px;
  color: #95c11f;
  white-space: nowrap;
  font-family: Calibri, sans-serif;
  font-weight: 600;
  opacity: 1;
}

.download-button.btn { background-image: url('../assets/Images/downloadGreen.svg'); }
.download-button.btn:hover { 
  width: 80px;
  background-image: url('../assets/Images/downloadGreen2.svg');
  background-position: calc(100% - 4px) center;
  border-color: #95c11f;
}
.download-button.btn:hover::after {
  content: "Descargar";
  margin-right: 10px;
  font-size: 10px;
  color: #95c11f;
  white-space: nowrap;
  font-family: Calibri, sans-serif;
  font-weight: 600;
  opacity: 1;
}

.reset-button.btn { 
  background-image: url('../assets/Images/Restart-Green.svg');
  background-size: 13px 13px;
}
.reset-button.btn:hover { 
  width: 73px;
  background-image: url('../assets/Images/Restart-Green2.svg');
  background-size: 13px 13px;
  background-position: calc(100% - 4px) center;
  border-color: #95c11f;
}
.reset-button.btn:hover::after {
  content: "Reiniciar";
  margin-right: 10px;
  font-size: 10px;
  color: #95c11f;
  white-space: nowrap;
  font-family: Calibri, sans-serif;
  font-weight: 600;
  opacity: 1;
}

/* Estilos para los botones */
#roleOptions {
  position: relative;
}

#roleOptions > div {
  text-align: left !important;
  justify-content: flex-start !important;
}

#roleOptions .btn {
  padding: 0.2rem 0.4rem !important; /* Más pequeños */
  font-size: 0.75rem !important; /* Texto más pequeño */
}
#roleOptions .btn-secondary { /* Botón Técnico */
  background-color: #00973a !important; /* Verde */
  border-color: #00973a !important;
  padding: 0.2rem 0.4rem !important;
  font-size: 0.75rem !important;
}

#roleOptions .btn-secondary:hover {
  background-color: #007b2f !important; /* Verde más oscuro */
  border-color: #007b2f !important;
}

#roleOptions .btn-primary {
  background-color: #00973a !important; /* Verde */
  border-color: #00973a !important;
  padding: 0.2rem 0.4rem !important;
  font-size: 0.75rem !important;
}

#roleOptions .btn-primary:hover {
  background-color: #007b2f !important; /* Verde más oscuro */
  border-color: #007b2f !important;
}

#roleOptions .dropdown-menu {
  min-width: 180px;
  position: absolute;
  z-index: 1000;
}

#roleOptions .dropdown-menu.show {
  border: 1px solid #00973a; /* Borde más oscuro */
}

/* Ajustes para el formulario */
#roleOptions .p-2 {
  padding: 0.03rem !important; /* Asegurar consistencia */
}

/* Ajustes para el formulario en modo claro */
#roleOptions .form-control-sm {
  font-size: 0.875rem !important; /* Tamaño de fuente de inputs */
  background-color: #ffffff; /* Fondo blanco */
  border: 1px solid #00973a; /* Borde gris claro */
  border-radius: 0.25rem;
  color: #093a21; /* Texto verde oscuro */
}

#roleOptions .form-control-sm::placeholder {
  font-size: 0.78rem !important; /* Tamaño pequeño */
  color: #6c757d !important; /* Gris para placeholders */
}

#roleOptions .form-check-input {
  transform: scale(0.8); /* Checkbox más pequeño */
  border-color: #00973a; /* Borde verde */
}

#roleOptions .form-check-input:checked {
  background-color: #00973a; /* Color verde para el check */
  border-color: #00973a; /* Borde del check */
  accent-color: #00973a; /* Asegura el color en navegadores modernos */
}
#roleOptions .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(9, 115, 58, 0.25); /* Sombra verde sutil */
}
#roleOptions .form-check-input:checked:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 151, 58, 0.25); /* Sombra verde sutil */
}

#roleOptions .form-check-label {
  font-size: 0.78rem !important; /* Texto "Recordarme" */
  color: #093a21; /* Verde oscuro */
}

#roleOptions .text-muted {
  color: #6c757d !important; /* Gris suave para etiquetas */
  font-size: 0.78rem !important;
}

/* Asegurar que los márgenes sean pequeños */
#roleOptions .mb-2 {
  margin-bottom: 0.5rem !important;
}

#roleOptions .form-control-sm:focus {
  border-color: #00973a !important; /* Borde verde claro */
  box-shadow: 0 0 0 0.2rem rgba(9, 115, 58, 0.25) !important; /* Sombra verde claro */
}

#chatInput:focus {
  border-color: #ffffff00 !important;
  /* box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important; Sombra azul */
}

/* ===== MODO OSCURO ===== */
body.dark-mode {
  background-color: #2a2a2a;
}

body.dark-mode #roleOptions .form-control-sm {
  background-color: #333; /* Fondo gris oscuro */
  border: 1px solid #00973a; /* Borde más oscuro */
  color: #d0d0d0; /* Texto claro */
}

body.dark-mode #roleOptions .dropdown-menu.show {
  background-color: #333; /* Fondo gris oscuro */
  border: 1px solid #00973a; /* Borde más oscuro */
  color: #d0d0d0; /* Texto claro */
}

body.dark-mode #roleOptions .form-control-sm:focus {
  border-color: #00973a !important; /* Borde verde claro */
  box-shadow: 0 0 0 0.2rem rgba(9, 115, 58, 0.25) !important; /* Sombra verde claro */
}

body.dark-mode #roleOptions .exampleDropdownFormEmail2 {
  color: #d0d0d0 !important;
}

body.dark-mode #roleOptions .form-control-sm::placeholder {
  color: #b0b0b0 !important; /* Placeholder gris claro */
}

body.dark-mode #roleOptions .text-muted {
  color: #999 !important; /* Gris medio para etiquetas */
}

body.dark-mode #roleOptions .form-check-input {
  transform: scale(0.8); /* Checkbox más pequeño */
  border-color: #00973a; /* Borde verde claro */
  background-color: #ffffff00; /* Fondo checkbox */
}

body.dark-mode #roleOptions .form-check-input:checked {
  background-color: #00973a; /* Color verde para el check */
  border-color: #00973a; /* Borde del check */
  accent-color: #00973a; /* Asegura el color en navegadores modernos */
}
body.dark-mode #roleOptions .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(9, 115, 58, 0.25); /* Sombra verde sutil */
}
body.dark-mode #roleOptions .form-check-input:checked:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 151, 58, 0.25); /* Sombra verde sutil */
}

body.dark-mode #roleOptions .form-check-label {
  color: #d0d0d0; /* Texto claro */
}

body.dark-mode #roleOptions .btn-primary {
  background-color: #00973a !important; /* Verde claro */
  border-color: #00973a !important;
}

body.dark-mode #roleOptions .btn-primary:hover {
  background-color: #007b2f !important; /* Verde más oscuro */
  border-color: #007b2f !important;
}

body.dark-mode .dropdown-list {
  border: 2px solid #00973a; /* Borde verde claro para contraste */
  background-color: #2a2a2a; /* Fondo oscuro consistente con el chat */
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Opcional: sombra más marcada en modo oscuro */
  max-height: 200px;
  max-width: 180px;
  overflow-y: auto;
}

body.dark-mode .dropdown-item {
  color: #e1e8cd !important; /* Texto claro legible */
}

body.dark-mode .dropdown-item:hover {
  background-color: #e1e8cd !important; /* Fondo gris oscuro al pasar el mouse */
  color: #093a21 !important;
}

body.dark-mode .dropdown-item.selected {
  background-color: #006f32; /* Verde oscuro para selección, contrastando con el fondo */
  font-weight: bold;
}

body.dark-mode .option-button {
  font-weight: bold;
  background-color: #ffffff00; /* Fondo oscuro */
  color: #00973a; /* Texto verde claro para contraste */
  border: #00973a solid 1.4px; /* Borde verde claro */
}

body.dark-mode .option-button:hover {
  font-weight: bold;
  color: #13261c; /* Texto oscuro para contraste con fondo */
  background-color: #95c11f; /* Fondo verde claro */
  border: #13261c solid 1.4px; /* Borde oscuro */
  transform: scale(1.05);
}

body.dark-mode .option-button:active {
  font-weight: bold;
  color: #00973a; /* Texto oscuro */
  background-color: #95c11f; /* Fondo verde claro */
}

body.dark-mode .voice-button.btn:active,
body.dark-mode .history-button.btn:active,
body.dark-mode .download-button.btn:active,
body.dark-mode .reset-button.btn:active,
body.dark-mode #sendButton.btn:active {
  background-color: #006f32; /* Mismo color que en modo claro */
  border-color: #006f32; /* Mismo borde */
  outline: none;
  box-shadow: none;
}

body.dark-mode #sendButton.btn:active {
  background-color: #007b2f;
  border-color: #ffffff00;
  background-image: url('../assets/Images/send-white.svg');
}

body.dark-mode .chat-header {
  background: #006f32;
  color: #f8f7f9;
}

body.dark-mode #themeToggle,
body.dark-mode #languageButton,
body.dark-mode #close-button {
  background-color: #006f32;
}

body.dark-mode #themeToggle:hover,
body.dark-mode #languageButton:hover,
body.dark-mode #close-button:hover {
  background-color: #00973a;
}

body.dark-mode .chat-container {
  background-color: #2a2a2a;
  border-color: #444;
}

body.dark-mode .chat-body {
  background-color: #2a2a2a;
  color: #d0d0d0;
}

body.dark-mode .bot-message {
  background-color: #444;
  color: #d0d0d0 !important;
}

body.dark-mode .user-message {
  background-color: #00973a;
  color: #ffffff;
}

body.dark-mode .typing-indicator {
  background-color: #444;
  color: #999;
}

body.dark-mode .chat-footer {
  background-color: #333;
  border-color: #444;
}

body.dark-mode .chat-input.form-control {
  background-color: #333;
  color: #d0d0d0;
  border-color: #555;
}

body.dark-mode .chat-input.form-control::placeholder {
  color: #b0b0b0;
  opacity: 0.6;
}

body.dark-mode .chat-input.form-control:-ms-input-placeholder {
  color: #b0b0b0;
}

body.dark-mode .chat-input.form-control::-ms-input-placeholder {
  color: #b0b0b0;
}