@font-face {
  font-family: 'rmneue-regular';
  src: url('rmneue-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
} 



body, .cl-header, .cl-markdown, .cl-button {
  font-family: 'rmneue-regular', Arial, sans-serif !important;
} 

/* Selector de botón enviar actual en Chainlit */
.cl-send-button, .MuiFab-root {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
}

.cl-send-button:hover, .MuiFab-root:hover {
  background: #333333 !important;
  color: #fff !important;
}

.cl-header-profile .MuiAvatar-root,
.MuiAvatar-root,
.cl-header-profile button,
.cl-header button {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
}
.cl-header-profile .MuiAvatar-root:hover,
.MuiAvatar-root:hover {
  background: #333333 !important;
  color: #fff !important;
}

.cl-link, .MuiLink-root, a {
  color: #004080 !important; /* Tu color preferido, azul oscuro por ejemplo */
  text-decoration: underline !important;
}
.cl-link:hover, .MuiLink-root:hover, a:hover {
  color: #0050b0 !important;
}

/* Popup Modal de Protección de Datos */
#privacy-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  z-index: 10000 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  font-family: 'rmneue-regular', Arial, sans-serif !important;
}

#privacy-modal.hidden {
  display: none !important;
}

.privacy-content {
  background: white;
  max-width: 500px;
  width: 90%;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-family: 'rmneue-regular', Arial, sans-serif;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.privacy-content h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.privacy-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.privacy-content ul {
  text-align: left;
  color: #666;
  margin: 15px 0;
}

.privacy-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.privacy-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'rmneue-regular', Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.privacy-accept {
  background: #28a745;
  color: white;
}

.privacy-accept:hover {
  background: #218838;
}

.privacy-info {
  background: #6c757d;
  color: white;
}

.privacy-info:hover {
  background: #5a6268;
}

.privacy-required {
  background: #dc3545;
  color: white;
  cursor: not-allowed;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .privacy-content {
    background: #2d2d2d;
    color: #fff;
  }
  
  .privacy-content h2 {
    color: #fff;
  }
  
  .privacy-content p,
  .privacy-content ul {
    color: #ccc;
  }
}

/* Bloquear interacción con el chat hasta aceptar */
.chat-blocked {
  pointer-events: none;
  opacity: 0.5;
}

.chat-blocked::after {
  content: "Acepta primeiro os termos de protección de datos";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 8px;
  z-index: 9999;
  font-family: 'rmneue-regular', Arial, sans-serif;
}