/* public/css/styles.css */

/* Color switch */

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 50px;
}

.theme-switch input {
  display: none;
}

.theme-switch-icon {
  position: relative;
  top: -15px;
  font-size: .9em;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 400ms;
}

.slider::before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: 400ms;
  width: 16px;
}

input:checked + .slider {
  background-color: #66bb6a;
}

input:checked + .slider::before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round::before {
  border-radius: 50%;
}

/* Main Sidebar */

.brand-link-dark {
  border-bottom: 1px #6c757d solid;
  background-color: #454d55;
}

.brand-link-light {
  border-bottom: 1px #dee2e6 solid;
  background-color: #ffffff;
}

.brand-link.brand-link-light:hover {color:#6c757d}

.sidebar-dark {
  background-color: #454d55;
}

.sidebar-light {
  background-color: #ffffff;
}

.sidebar-divider-light, .sidebar-divider-dark {
  height: 0;
  margin: .5rem 12px;
  overflow: hidden;
}

.sidebar-divider-dark {
  border-top: 1px solid #6c757d;
}

.sidebar-divider-light {
  border-top: 1px solid #dee2e6;
}

img.assistant-menu-image {
  max-width: 33px;
}

/* Navbar */

img.user-navbar-image {
  max-width: 30px;
  margin-top: -5px;
  margin-right: 5px;
}

/* Chat */

.direct-chat-text {
  background-color: #f8f9fa;
}

.direct-chat-msg {
  margin-bottom: 23px;
}

.chat-audio{
  position: absolute;
  right: 15px;
  z-index: 1; 
  margin-top: 5px; 
}

.chat-audio img:hover{
  cursor: pointer;
}


/* Typing indicator */
.character-typing {
  width: 100%;
  height: 80px;
  align-items: center;
  font-size: 1.3em;
  justify-content: center;
  font-weight: normal;
  margin-top: -80px;
  z-index: 10;
  border-radius: .25rem;
  display: none; 
}

.character-typing-light {
  background: #dee2e6;
  color: #343a4FFF;
}

.character-typing-dark {
  background: #2f3439;
  color: #f8f9fa;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: currentColor;
  border-radius: 50%;
  margin-left: 5px;
  animation: blink 1.4s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 80%, 100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

/* Datatables */
.dtr-control::before {
  content: '\f150';         /* caret-square-down */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #00bc8c;
  margin-right: 5px;
  display: none;
}

@media screen and (max-width: 768px) { 
  
  td.dtr-control::before {
      display: inline;
  }

}

/* Profile image button styling */
#change_profile_image_btn {
  position: absolute;
  top: 60px;
  left: 80px;
  background: #f39c12;
  color: #ffffff;
  border-radius: 50%;
  padding: 5px 8px;
}

.profile-links {
  margin: 13px auto;
}

/* Login, register, etc. */

.login-tagline, .register-tagline {
  text-align: center;
}

.login-logo, .register-logo {
  margin-bottom: 0 !important;
}

.toggle-password {
  cursor: pointer;
}


#single-page {
  background-color: #e9ecef;
  width: 1024px;
  margin: 38px auto;
}

.single-box {
  width: 100%;
}

#single-page h2 {
  font-size: 1.3em;
  margin: 10px auto;
}

/* Others */

iframe {
  max-width: 100%;
}

/* Contenedor General para Medios (YouTube, MP4, Imágenes) */
.chat-media-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

/* Video Contenedores - Relación 16:9 */
.chat-video-container {
  padding-bottom: 56.25%; /* Relación 16:9 */
  height: 0;
}

/* Ajuste de iframe para YouTube */
.chat-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Ajuste de video MP4 */
.chat-media-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* Ajuste de Imágenes */
.chat-media-container img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px; /* Máximo alto para imágenes */
  object-fit: contain;
}

.welcome-button button {
  margin: 20px 5px 10px;
  border-radius: 20px;
  cursor: pointer;
}

.btn-outline-light {
  color: #6d6d6d;
  border-color: #9E9E9E;
  box-shadow: 1px 1px 1px #dddddd;
  font-size: 0.9em;
}
