/* Utilidades de vista */
.view {
  display: none;
}
.view.active {
  display: block;
}

.menu-btn.active {
  background-color: #ffffff;
  color: #074d73;
  font-weight: 600;
}

.big-question {
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

/* Parrilla de imágenes */
.images-grid img {
  width: 100%;
  height: 7rem;
  /* Cambio clave: contain para ver toda la carta */
  object-fit: contain; 
  background-color: #f1f5f9; /* Slate-100 para rellenar huecos */
  border-radius: 0.75rem;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.images-grid img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Selección activa: Usa color corporativo */
.images-grid img.selected {
  border-color: #074d73; /* uyeBlue */
  background-color: #e0f2fe;
  transform: scale(0.95);
}

/* Tarjeta de moderador */
.selection-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.selection-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.thumbs img {
  width: 3rem;
  height: 3rem;
  object-fit: contain; /* Para que se vea bien en miniatura */
  background-color: #f8fafc;
  border-radius: 0.4rem;
  border: 1px solid #cbd5e1;
}

/* Modales con Transición */
.modal {
  display: none; /* fallback */
}
.modal:not(.hidden) {
  display: flex;
}
.modal.open {
  opacity: 1;
}
.modal.open .modal-content {
  transform: scale(1);
}

/* TOASTS (Notificaciones) */
.toast {
  background: white;
  color: #1e293b;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  font-size: 0.875rem;
  border-left: 4px solid #334155;
  pointer-events: auto;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.info { border-left-color: #3b82f6; }

/* Scrollbar fina para lista */
#mod-connections-list::-webkit-scrollbar {
  width: 4px;
}
#mod-connections-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}