table,tr,td{margin: 0;padding: 0;}

textarea, input{border:0; outline: none;resize: none;}


:root {
	--bg-color: rgba(252, 252, 252, 0.5);
	--text-color: black;
	--conversation-bg: rgb(255, 255, 255, 0.65);
	--link-color: rgb(68, 128, 175);
	--text-color-bubble: white;
	--bg-color-inverse: rgba(221, 221, 221, 0.7);
	--send-button-color: rgba(0, 0, 0, 0.8);
	--loading-color: #6f6f6f;
	
}

[data-theme="dark"] {
	--bg-color: rgb(0, 0,0, 0.2);
	--text-color: rgb(255, 255, 255);
	--conversation-bg: rgb(45, 45, 45, 0.4);
	--link-color: rgb(100, 160, 200);
	--text-color-bubble: black;
	--bg-color-inverse: rgba(209, 209, 209, 0.5);
	--send-button-color: rgba(0, 0, 0, 0.8);
	
	--loading-color: #cccccc;
}

.user-separator {
	margin: 10px 0;
	border: 0;
	border-top: 1px solid rgb(68, 128, 175)! important;
}
.user-links {
	
	margin: 8px 0;
}
.user-links a {
	
	text-decoration: none;
}
.user-links a:hover {
	text-decoration: underline;
}
.background-image{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	position: fixed;
	z-index: -1;
}

[data-theme="dark"] .background-image{
	background-color: var(--bg-color);
}





html a{
	text-decoration: none;
	color: var(--link-color);
	font-weight: 300;
}




body{
  height: 100%;
	width: 100%;
	margin: 0;
	font-family: Lato;
	font-weight: 300;
	color: var(--text-color);
	
 }


.center {
  padding: 10px;
  text-align: center;
}
.right {
  float: right;
}

#conversationSpace{
	position: fixed;
	top:0px;
	bottom:75px;
	left:0px;
	right: 0px;
	overflow-y: auto;
}

#conversation{
	position: relative;
	top:0px;
	bottom:100px;
	left:0px;
	right: 0px;
	font-family: Lato;
	font-weight: 350;
	font-size: 21px;
	text-align: left;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
	width: 60%;
	max-width: 650px;
	margin-bottom: 20px;
	margin-top: 200px;
	z-index: 0;
	overflow-y: auto;
	padding: 15px;
	border-radius: 15px;
	 background-color: var(--conversation-bg);
	 display: none;
	backdrop-filter: blur(15px) !important;
	-webkit-backdrop-filter: blur(15px) !important;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

    /* Estilos translúcidos para el área de conversación */
    /* #conversation {
        background-color: rgba(255, 255, 255, 0.5) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    }
*/
    /* [data-theme="dark"] #conversation {
        background-color: rgba(45, 45, 45, 0.5) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
    }  */
.conversation-button{
	cursor: pointer;
	filter: brightness(0) invert(0);
	width: 20px;
	height: 20px;
	padding-right: 10px;
	opacity: 0.2;
	transition: opacity 0.3s ease, transform 0.2s ease;
}

.conversation-button:hover {
	opacity: 1;
	transform: scale(1.1);
}

[data-theme="dark"] .conversation-button{
	filter: brightness(0) invert(1);
}

[data-theme="dark"] .conversation-button:hover {
	opacity: 1;
}




/* #conversation img{
	border-radius: 15px;
	margin:15px;
	text-align: center;
	height: 125px;
	display: none;
} */

@media only screen and (max-width: 500px) {
	 #conversation{
	    font-size: 22px;
	 }
}


#me{
	z-index: 100;
	position: absolute;
	left: 0px;
	width: 100%;
	bottom: 50%;
	height: 100px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 25px;
	box-sizing: border-box;
}

.input-container {
	position: relative;
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
}

#meTextArea{
	width: 100%;
	font-family: Lato;
	font-weight: 300;
	font-size: 20px;
	border-style: none;
	padding: 15px 60px 15px 20px;
	background-color: rgb(255, 255, 255,0.7);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);

	text-align: left;
	display: block;
	vertical-align: center;
	overflow: hidden;
	border-style: solid;
	border-color: black;
	border-width: 1px;
	border-radius: 20px;
	z-index: 1000;
	box-sizing: border-box;
}

#meTextAreaBack{
	position: relative;
	font-family: Lato;
	font-weight: 300;
	font-size: 20px;
	border-style: none;
	padding: 15px 50px 15px 20px;
	width: 100%;
	max-width: 700px;
	background-color: rgb(255, 255, 255,0.8);
	text-align: left;
	display: block;
	margin-right: auto;
	margin-left: auto;
	vertical-align: center;
	overflow: hidden;
	border-style: solid;
	border-color: black;
	border-width: 0px;
	border-radius: 20px;
	z-index: 1;
}

.unsplash{
	position: fixed;
	font-family: Lato;
	font-weight: 300;
	font-size: 15px;
	border-style: none;
	left:75px;
	right: 75px;
	bottom:14px;
	text-align: center;
	display: block;
	margin-right: auto;
	margin-left: auto;
	vertical-align: center;
	overflow: hidden;
	color: black;


}


#mic{
	position: absolute;
	right: 98px;
	bottom: 62px;
	width: 18px;
	height: 25px;
	font-size: 30px;
	opacity: 0.3;
	z-index: 1000000;
}
#mic:hover{
	cursor: pointer;
}


.loadingSend{
	position: absolute;
	right: 17px;
	top: 28%;
	z-index: 10000;
	opacity: 0.3;
	display: none;
}

#send{
	position: absolute;
	right: 27px;
	top: 47%;
	transform: translateY(-50%);
	width: 18px;
	height: 25px;
	font-size: 30px;
	opacity: 0.3;
	z-index: 10000;
	cursor: pointer;
	color: var(--send-button-color);
}
#send:hover{
	opacity: 0.7;
}



#info{
	position: absolute;
	right: 15px;
	bottom: 20px;
	width: 30px;
	height: 30px;
/*	background-image: url(img/info.png);*/
	opacity: 0.5;
	z-index: 1000;
	font-size: 30px;
}

#info:hover{
	cursor: pointer;
	opacity: 1;
}

#voice{
	position: absolute;
	right: 20px;
	top: 10px;
	width: 27px;
	height: 25px;
	font-size: 30px;
/*	background-image: url(img/voice.png);*/
	opacity: 0.5;
	z-index: 1000000;
}
#voice:hover{
	cursor: pointer;
}


#content{
  position: fixed;
  top:-200px;
  bottom:0px;
  right: 0px;
  left: 0px;
  vertical-align: middle;
  text-align:center;
  z-index: 0;
}

#by{
	position: fixed;
	right:75px;
	bottom: 10px;
	z-index: 10000;
}

.disabled{
	opacity: 0.5;
	cursor:not-allowed!important;
}

#message{
	top:55px;
	right:10px;
	position: absolute;
	border-radius: 5px;
	padding: 10px;
	background-color: var(--bg-color);
	color: var(--text-color);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	width: 200px;
	text-align: center;
	display: none;
	z-index: 10000;
}

#loading {
	position: fixed;
	top:-13px;
	right: 50px;
	width: auto;
	z-index: 100;
	display: none;
}

.circle-button{
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	background-color: var(--conversation-bg);
	color: var(--text-color);
	border-radius: 50%;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	text-align: center;
	justify-content: center;
	align-items: center;
	display: flex;
	cursor: pointer;
	z-index: 10000000;
}

[data-theme="dark"] .circle-button img{
	filter:  invert(1);	
}

/* Media query for screens smaller than 700px */
@media screen and (max-width: 800px) {
    .circle-button {
		
        bottom: 85px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 100000000;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000001;
}

/* Show overlay when any smallModal is visible */
.modal.smallModal[style*="display: block"] ~ .modal-overlay {
    display: block;
}

.modal.smallModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 600px;
    max-height: 90vh;
    padding: 50px;
    overflow-y: auto;
    background-color: rgba(20, 20, 20, 0.95);
    color: white;
    text-align: center;
    border-radius: 15px;
    z-index: 100000002;
}

.modal:not(.smallModal) {
    top: 40px;
    bottom: 50px;
    left: 50px;
    right: 50px;
    padding: 100px 0px 0px 0px;
    overflow: scroll;
    background-color: rgb(0,0,0,0.85);
    color: white;
    text-align: center;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal .avatar {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    border-style: solid;
    border-width: 5px;
    border-color: white;
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

@media screen and (max-width: 640px) {
    .modal.smallModal {
        max-width: 350px;
        width: 90%;
        padding: 40px 20px;
    }
}

#settings{
	position: absolute;
	left: 20px;
	bottom: 20px;
	width: 30px;
	height: 30px;
	font-size: 30px;
/*	background-image: url(img/settings.png);*/
	opacity: 0.5;
	z-index: 1000;
}

#settings:hover{
	cursor: pointer;
	opacity: 1;
}

.copy{
	position: absolute;
	right: 15px;
	top: 205px;
	font-size: 30px;
	opacity: 0.15;
}
.copy:hover{
	cursor: pointer;
	opacity: 0.5;
}


.twitter{
	position: absolute;
	right: 15px;
	top: 250px;
	font-size: 30px;
/*	background-image: url(img/voice.png);*/
	opacity: 0.15;
}
.twitter:hover{
	cursor: pointer;
	opacity: 0.5;
}

.whatsapp{
	position: absolute;
	right: 15px;
	top: 295px;
	font-size: 30px;
/*	background-image: url(img/voice.png);*/
	opacity: 0.15;
}
.whatsapp:hover{
	cursor: pointer;
	opacity: 0.5;
}

.email{
	position: absolute;
	right: 15px;
	top: 340px;
	font-size: 30px;
/*	background-image: url(img/voice.png);*/
	opacity: 0.15;
}
.email:hover{
	cursor: pointer;
	opacity: 0.5;
}



.serpResults{
	margin-top: 20px;
	font-size: 14px;
	max-width: 350px;
}
.serpResults a{
		text-decoration: underline;
		cursor: pointer;
}

.serpResult{
		padding: 15px;
	margin-left: 20px;
	border-radius: 15px;
	background-color: rgb(255,255,255,0.7);
	display: inline-block;
	max-width:250px;
}

.logoProvider{
	display: inline-block!important;
	height: 25px!important;
	padding: 0px!important;
	margin:0px!important;


}

.gResults {
  margin-top: 10px;
  width: 90%;
  max-width: 700px;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
  text-align: center;
}

/* Estilo unificado para todos los botones de sugerencias */
.suggestion-btn {
  display: inline-block;
  text-align: center;
  background: var(--conversation-bg);
  border-radius: 12px;
  padding: 15px;
  margin: 5px;
  font-size: 15px;
  color: var(--text-color);
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-btn:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

[data-theme="dark"] .suggestion-btn {
  background-color: rgba(50, 50, 50, 0.7);
}

.gResults span {
  /* Usar la clase suggestion-btn */
}

.gResults a:hover {
  
}

/* Contenedor para las sugerencias iniciales */
#initialSuggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 15px 0;
  z-index: 99;
  transition: opacity 0.3s ease;
  margin-top: 10px;
}

.suggestions-container {
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.bubble_div{
  display: flex;
  justify-content: flex-end;
  margin: 0px;
}

.bubble{
	width: auto;
	font-family: Lato;
	 display: inline-block;
	 background-color: var(--bg-color-inverse);
	 color: var(--text-color);
	 border-radius: 25px;
	 font-weight: normal;
	 text-align: right;
	 word-wrap: break-word;
	 white-space: pre-wrap;
	 line-height: 1.2;
	 padding-right: 22px;
	 padding-left: 22px;
	 margin:0px!important;
	 display: flex;
	justify-content: flex-end;
	align-items: center;
	padding-top: 10px;
	padding-bottom: 12px;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

@media only screen and (max-width: 750px) {
	#me {
		padding: 0 25px;
	}
	.input-container {
		width: calc(100% - 50px);
		margin: 0 25px;
	}
}

.hide {
	display: none;
}

.user-avatar {
	position: fixed;
	top: 7px;
	right: 7px;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	cursor: pointer;
	border: 1px solid;
	overflow: hidden;
	z-index: 1000;
}

.user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.user-modal {
	display: none;
	position: fixed;
	top: 50px;
	right: 9px;
	background: var(--bg-color);
	color: var(--text-color-);
	padding: 1rem;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	z-index: 1000;
	backdrop-filter: blur(15px) !important;
	-webkit-backdrop-filter: blur(15px) !important;
}



.user-modal.active {
	display: block;
}

.logout-btn {
	display: block;
	width: 100%;
	padding: 8px 16px;
	background: #3A7CA5;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}

.logout-btn:hover {
	background: #2f77a3;
}

.user-info {
	margin-bottom: 1rem;
	font-size: 17px;
}

.user-separator {
    margin: 10px 0;
    border: 0;
    border-top: 1px solid var(--border-color) !important;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 10px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.theme-switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--link-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.theme-switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.theme-switch-label {
    margin: 0 10px;
    color: var(--text-color);
}


.menu-icon {

}


.menu{
	padding: 11px 11px 8px 11px;
	border-radius: 50px;
	position: fixed;
	left: 7px;
	top: 4px;
	z-index: 100000;
	cursor: pointer;    
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	background-color: rgba(255, 255, 255, 0.15);
	color: #333;
}

[data-theme="dark"] .menu{
	background-color: rgba(0, 0, 0, 0.25);
}
.menu img{
	width: 20px;
	height: 20px;
}

[data-theme="dark"] .menu img{
	filter:  invert(1);
	width: 20px;
	height: 20px;
	
}


.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 50px;
	background-color: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	z-index: 100;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: center;
	align-items: center;
}

.mainTitle {
	font-size: 20px;
	font-weight: 500;
	color: #333;
	text-align: center;
	width: 100%;
	position: absolute;
	top: 13px;
	left: 0;
	right: 0;
	margin: auto;
	pointer-events: none;
	z-index: 10000;
}
.mainTitle sub{
	font-size: 50%;
}

[data-theme="dark"] .mainTitle {
	color: #fff;
}

/* Adjust for dark mode */
[data-theme="dark"] .header {
	background-color: rgba(0, 0, 0, 0.15);
}


.side-menu {
	position: fixed;
	top: 50px; /* Start from header height */
	left: -250px;
	width: 250px;
	height: calc(100% - 50px); /* Full height minus header */
	background-color: rgba(50, 50, 50, 0.55);
	z-index: 150;
	transition: left 0.3s ease;
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	padding-top: 20px;
	color: white;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
}

.side-menu.active {
	left: 0;
}

.side-menu-item {
	padding: 10px 20px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.side-menu-item:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.side-menu-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 10px 20px;
}

.side-menu-content {
	flex: 1 1 auto;
	overflow-y: auto;
	min-height: 0;
}

.side-menu-footer {
	flex-shrink: 0;
	margin-bottom: 50px;
}

[data-theme="dark"] .side-menu {
	background-color: rgba(20, 20, 20, 0.85);
}

[data-theme="dark"] .side-menu-item:hover {
	background-color: rgba(255, 255, 255, 0.05);
}

.menu-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 24px;
	height: 24px;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s;
	filter: brightness(0) invert(1);
}

.menu-close:hover {
	opacity: 1;
}



.selected-agent {
	position: fixed;
	top: 5px;
	left: 60px;
	z-index: 101;
}

.agent-dropdown {
	position: relative;
	display: inline-block;
	

}

.agent-button {
	background-color: rgba(255, 255, 255, 0.15);
	color: #333;
	padding: 8px 15px;
	font-size: 17px;
	border: none;
	border-radius: 20px;
	cursor: pointer;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	gap: 5px;
}

[data-theme="dark"] .agent-button {
	background-color: rgba(0, 0, 0, 0.25);
	color: #fff;
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: rgba(255, 255, 255, 0.7);
	min-width: 200px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 102;
	border-radius: 8px;
	overflow: hidden;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.blur {
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

[data-theme="dark"] .dropdown-content {
	background-color: rgba(30, 30, 30, 0.7);
}

[data-theme="dark"] .agent-dropdown img{
	filter: brightness(0) invert(1);
}


.dropdown-content a {
	color: #333;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	font-size: 17px;
}

[data-theme="dark"] .dropdown-content a {
	color: #fff;
}

.dropdown-content a:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .dropdown-content a:hover {
	background-color: rgba(255, 255, 255, 0.05);
}

.show {
	display: block;
}

/* Estilo para el avatar de usuario */
.user-avatar {
	position: fixed;
	top: 7px;
	right: 7px;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	cursor: pointer;
	overflow: hidden;
	z-index: 1000;
	background-color: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: none;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

[data-theme="dark"] .user-avatar {
	background-color: rgba(30, 30, 30, 0.25);
}

.user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* loading animation */
.typing-indicator {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 5px; /* Espacio entre puntos */
	height: 24px;
	padding: 8px;
  }
  
  .typing-indicator span {
	width: 15px;
	height: 15px;
	background-color: var(--loading-color); /* Color gris clarito */
	border-radius: 50%; /* Hace que sean círculos */
	animation: bounce 1s infinite ease-in-out; /* Animación más rápida */
  }
  
  .typing-indicator span:nth-child(1) {
	animation-delay: 0s;
  }
  
  .typing-indicator span:nth-child(2) {
	animation-delay: 0.1s;
  }
  
  .typing-indicator span:nth-child(3) {
	animation-delay: 0.3s;
  }
  
  @keyframes bounce {
	0%, 60%, 100% {
	  transform: translateY(0);
	}
	30% {
	  transform: translateY(-10px);
	}
  }

/* Specific styles for the three special modals */
#moreInfo.modal,
#invitationPromptModal.modal,
#invitationsModal.modal {
    position: relative;
    z-index: 100000003; /* One level above the regular modal-overlay */
}

/* Special overlay class for the three specific modals */
.special-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1); /* Darker background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100000002;
}

/* Show special overlay when any of the three modals is visible */
#moreInfo[style*="display: block"] ~ .special-modal-overlay,
#invitationPromptModal[style*="display: block"] ~ .special-modal-overlay,
#invitationsModal[style*="display: block"] ~ .special-modal-overlay {
    display: block;
}

/* Ensure the modals have proper background and styling */
#moreInfo.modal.smallModal,
#invitationPromptModal.modal.smallModal,
#invitationsModal.modal.smallModal {
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}



