/* Chat Policial · estilo para Converse.js 11
   Colocar en /var/www/converse/policia.css junto con escudo.png */

:root,
converse-root,
#conversejs,
.conversejs {
  --policia-azul: #1f3a5f;
  --policia-dorado: #c9a227;
  --primary-color: #1f3a5f;
  --link-color: #1f3a5f;
  --chat-head-color: #1f3a5f;
  --chat-head-text-color: #ffffff;
  --highlight-color: #c9a227;
}

body {
  background: #eef1f4;
}

/* Marca: reemplaza el logo de Converse por el escudo y el nombre del chat */
converse-brand-logo {
  display: block;
  text-align: center;
  margin: 1.5rem auto;
}
converse-brand-logo > * {
  display: none !important;
}
converse-brand-logo::before {
  content: "";
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  background: url("/escudo.png") center / contain no-repeat;
}
converse-brand-logo::after {
  content: "Chat Policial";
  display: block;
  font: 600 26px system-ui, "Segoe UI", Roboto, sans-serif;
  color: #1f3a5f;
}

/* Pie con versión y patrocinadores de Converse */
converse-footer {
  display: none !important;
}

/* Formulario de ingreso: ancho razonable y campo de usuario visible */
converse-login-form {
  display: block;
  align-self: center;
  width: min(100%, 26rem);
  margin: 0 auto;
}
converse-login-form .input-group {
  display: flex;
  width: 100%;
}
converse-login-form .input-group > .form-control,
converse-login-form input[name="jid"],
converse-login-form input[name="password"] {
  flex: 1 1 12rem;
  width: auto;
  min-width: 12rem;
}
converse-login-form .form-check {
  display: none;
}

/* Botones y enlaces */
.btn-primary {
  background-color: #1f3a5f !important;
  border-color: #1f3a5f !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #c9a227 !important;
  border-color: #c9a227 !important;
  color: #1f3a5f !important;
}
.form-control:focus {
  border-color: #1f3a5f;
  box-shadow: 0 0 0 0.2rem rgba(31, 58, 95, 0.2);
}
a {
  color: #1f3a5f;
}

/* Cabecera de los chats */
.chat-head,
.chatbox-head,
.controlbox-head {
  background: #1f3a5f !important;
  border-bottom: 3px solid #c9a227;
}
.chat-head a,
.chat-head .chatbox-title__text,
.controlbox-head a {
  color: #fff !important;
}

/* Enlaces superiores de Converse (About, Github, Documentation, Contact) */
converse-controlbox-buttons,
a[href*="conversejs.org"],
a[href*="github.com/conversejs"] {
  display: none !important;
}
converse-controlbox-navbar{
  display: none !important;
}

/* Refuerzo: botón de ingreso y casilla de confianza */
converse-login-form .btn,
converse-login-form input[type="submit"] {
  background: #1f3a5f !important;
  border-color: #1f3a5f !important;
  color: #fff !important;
}
converse-login-form .form-check {
  display: none !important;
}
