/*

.message a[href] {
  color: rgb(58, 66, 233);
  text-decoration: underline;
}


#sidebar.collapsed > *:not(#toggle-sidebar) {
  display: none;
}



#main-content {
  height: calc(var(--vh, 1vh) * 100 - env(safe-area-inset-bottom));
}
#sidebar {
  height: calc(var(--vh, 1vh) * 100 - env(safe-area-inset-bottom));
  transition: width 0.3s ease; 
}
#container {
  height: calc(var(--vh, 1vh) * 100);
}


@media (max-width: 1023px) { 
  #sidebar.collapsed {
    width: 0 !important;
    padding: 0;
    overflow: hidden;
  }
}
@media (min-width: 1024px) { 
  #sidebar.collapsed {
    width: 3rem !important;
    overflow: hidden;
  }
}


.collapsed .menu-label {
  display: none;
}


.nav-link.active {
  background-color: #ebf8ff; 
  
  color: #2b6cb0; 
  
}
*/






#afroditabot-chat-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 9998;
}



#afroditabot-chat-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  height: 500px;
  background-color: var(--background-color);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, bottom 0.3s ease, left 0.3s ease, right 0.3s ease;
}
#afroditabot-widget-header {
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
}
#afroditabot-widget-header h2 {
  font-weight: bold; 
  color: #fff;
  font-size: 1rem; 
  margin: 0;
}
#widget-controls {
  display: flex;
  gap: 8px;
}
.afroditabot-widget-btn {
  background: transparent; 
  border: none; 
  color: #fff;
  cursor: pointer; 
  font-size: 1rem; 
  padding: 4px 6px;
}
.afroditabot-widget-btn:hover {
  opacity: 0.8;
}

#afroditabot-widget-content {
  display: flex; 
  flex-direction: column; 
  flex: 1; 
  height: 100%;
  overflow: hidden;
}
#afroditabot-chat-container {
  flex: 1; 
  min-height: 0;
  overflow-y: auto; 
  padding: 16px;
  display: flex; 
  flex-direction: column; 
  gap: 8px;
  background-color: #fff;
}

#afroditabot-input-row {
  display: flex;
  flex-shrink: 0;
  background-color: #e0e0e0;
  padding: 4px;
}
#afroditabot-chat-user-input {
  flex: 1;
  padding: 8px;
  font-size: 1.0rem;
  height: 25px !important;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

#afroditabot-send-btn {
  margin-left: 4px;
  padding: 4px 8px;
  font-size: 0.9rem;
  line-height: 1.2;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

#afroditabot-send-btn:hover {
  background: var(--secondary-color);
}
#afroditabot-loading {
  position: absolute; 
  inset: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
}
.afroditabot-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 8px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}




#afroditabot-loading-text {
  color: #fff;
  font-size: 1.0rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
}
#afroditabot-chat-widget.fullscreen {
  top: 10%; 
  left: 10%;
  bottom: auto; 
  right: auto;
  width: 80vw; 
  height: 80vh;
  border-radius: 8px;
}
@media (max-width: 600px) {
  #afroditabot-chat-widget {
    width: 90vw; 
    height: 80vh;
    left: 5vw !important; 
    right: auto;
    bottom: 10px !important;
  }
  #afroditabot-chat-button {
    bottom: 10px; 
    right: 10px;
  }
}
















:root {
  --primary-color: #886b50;
  --secondary-color: #80411c;
  --hover-color: #9f3810;
  --background-color: #fff;
  --user-message-bg: #dcf8c6;
  --assistant-message-bg: #f1f0f0;
  --font-color: #000000;
  --link-color: #8a350d;
  --sidebar-bg: #f9f9f9;
  --button-border-radius: 48px;
  --button-shadow: 0 0px 0px rgba(0,0,0,0.0);

}



#afroditabot-chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.90rem; 
  border-radius: var(--button-border-radius);

  
  cursor: pointer;
  box-shadow: var(--button-shadow);
  
  
  /*transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;*/
  border: none;
  outline: none;

  font-weight: bold; 
  animation: pulse 1.5s infinite; 
  /*transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;*/



}
/*
@keyframes pulse {
  0%   { transform: scale(1);     box-shadow: 0 2px 8px rgba(0,0,0,0.20);}
  50%  { transform: scale(1.07);  box-shadow: 0 4px 18px rgba(161, 13, 177, 0.17);}
  100% { transform: scale(1);     box-shadow: 0 2px 8px rgba(0,0,0,0.20);}
}

*/

@keyframes pulse {
  0%   { transform: scale(1);     }
  50%  { transform: scale(1.07);  }
  100% { transform: scale(1);     }
}




#afroditabot-chat-button::before {
  content: '';
  display: inline-block;
  width: 0px;
  height: 0px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 0px;

}

#afroditabot-chat-button:hover {
  background-color: var(--hover-color, var(--secondary-color));
  transform: scale(1.05);
}
#afroditabot-chat-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#afroditabot-chat-button .icon {
  margin-right: 8px;
  font-size: 1.2em;
  display: inline-block;
  vertical-align: middle;
}

#afroditabot-chat-button.sm {
  font-size: 0.85rem !important;
  padding: 4px 18px !important;
}

#afroditabot-chat-button.md {
  font-size: 1rem !important;
  padding: 8px 28px !important;

}

#afroditabot-chat-button.lg {
  font-size: 1.2rem !important;
  padding: 12px 28px !important;
}


/* Tamaños del botón */
#afroditabot-chat-button.sm { font-size: 0.85rem; padding: 2px 8px; }
#afroditabot-chat-button.md { font-size: 1rem; padding: 2px 8px; }
#afroditabot-chat-button.lg { font-size: 1.2rem; padding: 2px 8px; }

/* Variantes */


/* Variante relleno */
#afroditabot-chat-button.solid {
  background-color: var(--primary-color);
  color: #fff;
  border: none;

  
}

/* Variante contorno con fondo semi-transparente */
#afroditabot-chat-button.outline {
  background-color: rgba(255, 255, 255, 1); /* Blanco con transparencia */
  color: var(--primary-color);
  border: 1px solid var(--primary-color);

  

  
}

/* Variante ghost con fondo muy leve */
#afroditabot-chat-button.ghost {
  background-color: rgba(255, 255, 255, 0.5); /* Blanco más suave */
  color: var(--primary-color);
  border: none;

  

  
}

/* Sombra */
#afroditabot-chat-button.shadow { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.462); }
#afroditabot-chat-button.noshadow { box-shadow: none; }



.message {
  padding: 12px;
  border-radius: 12px;
  max-width: 80%;
  line-height: 1.4;
  font-size: 1.06rem;
  font-family: Arial, sans-serif;
  text-align: left;  /* Fuerza el texto alineado a la izquierda */

  white-space: pre-wrap;
  word-wrap: break-word;
  color: #000;
}
.message.user {
  background-color: var(--user-message-bg);
  align-self: flex-end;
  border-bottom-right-radius: 0;
}
.message.assistant {
  background-color: var(--assistant-message-bg);
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

#afroditabot-chat-button,
#afroditabot-chat-widget,
#afroditabot-loading {
  z-index: 1000000 !important;
}


    



  
  