/* style.css */

/* Fondo global */
body {
  background: #f3f4f6;
  margin: 0;
  padding: 0;
}

/* Navbar y Footer con gradiente */
.navbar-custom {
  background: linear-gradient(90deg, #ffffff 0%, #bde0f7 100%) !important;
}
.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: #033d5c !important;
}
/* Efecto hover/click en "Webcam" => background */
.webcam-link:hover,
.webcam-link:active {
  background-color: rgba(3,61,92,0.2) !important;
  border-radius: 5px;
  color: #033d5c !important;
}

/* Dropdown con efecto fade */
.dropdown-menu.fade {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.dropdown-menu.fade.show {
  opacity: 1;
}

/* Footer */
footer {
  background: linear-gradient(90deg, #ffffff 0%, #bde0f7 100%);
  color: #033d5c;
}
#footer-text {
  color: #033d5c;
  font-weight: 500;
}

/* Efecto hover para los iconos sociales */
.social-icon img {
  transition: transform 0.3s, box-shadow 0.3s;
}
.social-icon:hover img {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Chat box */
#chat-box {
  height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
}

/* Mensajes */
.chat-message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  max-width: 70%;
  word-wrap: break-word;
  font-size: 0.9rem;
}
.my-message {
  background-color: #0d6efd; /* Azul de Bootstrap */
  margin-left: auto;
}
.other-message {
  background-color: #6c757d; /* Gris de Bootstrap */
  margin-right: auto;
}
.system-message {
  background-color: #ffc107; /* Amarillo */
  color: #000;
  font-weight: bold;
  text-align: center;
  max-width: 100%;
}

/* Imagenes y videos en el chat (miniatura). */
.chat-image {
  max-width: 150px;
  max-height: 150px;
  margin-top: 5px;
  border-radius: 6px;
  cursor: pointer;
  display: block;
}

/* Íconos cam/mic 32x32 + hover */
.icon-btn {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.3s;
  margin-left: 10px;
}
.icon-btn:hover {
  transform: rotate(180deg);
}

/* Language selector banderas - ajusta si deseas */
.language-dropdown .dropdown-toggle img {
  border-radius: 4px;
  margin-right: 5px;
}

/* Progreso (barra) al lado de "Buscando..." */
.progress {
  height: 15px;
  margin-top: -5px; /* un ligero ajuste */
}
.progress-bar {
  background-color: #0d6efd;
}

/* Overlay para contenido grande (imagen o video) */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-overlay {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}
.image-overlay img,
.image-overlay video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}
.d-none {
  display: none !important;
}

/* Mensaje de apodo (solo .nickname-message) */
.nickname-message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  max-width: 70%;
  word-wrap: break-word;
  font-size: 0.9rem;
  background-color: #fff;
  color: red; /* Texto rojo */
  text-align: center;
  font-weight: bold;
}

/* Popup efímero para apodo (centrado y con fade in/out) */
.ephemeral-msg {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fd7e14; /* Un naranja */
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 1s ease;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.ephemeral-msg.show {
  opacity: 1;
}
