/* Estilos de la app (Bootstrap 5 + custom mínimo) */

html, body {
  height: 100%;
}

body {
  min-height: 100%;
}

/* Layout principal */
.app-main {
  flex: 1 1 auto;
  overflow: auto;
}

.app-footer {
  flex-shrink: 0;
}

/* Botón desviar conversación */
.btn-desviar {
  background-color: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}
.btn-desviar:hover,
.btn-desviar:focus {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

/* Badge datos del día */
.badge-datos {
  background-color: #059669 !important;
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
}

/* Badges de contador en botones del header */
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9999px;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.25rem;
  line-height: 1;
}
.badge-count-conv {
  background: #6366f1;
}

/* Cards de chat */
.chat-bubble {
  max-width: 75%;
}
.chat-in {
  background-color: #cff4fc;
  border: 1px solid #9eeaf9;
}
.chat-out {
  background-color: #fff3cd;
  border: 1px solid #ffe69c;
}
[data-bs-theme="dark"] .chat-in {
  background-color: #055160;
  border-color: #087990;
  color: #fff;
}
[data-bs-theme="dark"] .chat-out {
  background-color: #664d03;
  border-color: #997404;
  color: #fff;
}

/* Mensaje enviado: fondo amarillo claro */
.lightyellow {
  background-color: #fff3cd;
  color: #000;
}
[data-bs-theme="dark"] .lightyellow {
  background-color: #664d03;
  color: #fff;
}

/* Utilidades menores */
.cursor-pointer {
  cursor: pointer;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.break-words {
  word-break: break-word;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.scale-110 {
  transform: scale(1.1);
  transition: transform 0.15s ease;
}

/* Acordeón conversaciones (details/summary) */
details.conv-card > summary {
  list-style: none;
}
details.conv-card > summary::-webkit-details-marker {
  display: none;
}
details.conv-card > summary:hover {
  background-color: var(--bs-tertiary-bg);
}

/* Selección de promotor / sexo en nuevo */
.btn-choice.active {
  outline: 2px solid currentColor;
  outline-offset: 1px;
  font-weight: 700;
}

/* Título login/registro */
.titulo {
  font-weight: 700;
  text-align: center;
  font-size: 1.875rem;
}

/* HTMX indicators */
.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Header nav buttons row */
.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem;
  padding: 0.5rem;
}
