/* Estilo del contenedor con fondo */
.qm-contenedor-fondo {
    background-image: url('https://img.freepik.com/foto-gratis/concepto-hacer-deporte_23-2151937746.jpg?semt=ais_hybrid&w=740&q=80'); /* Ruta de la imagen */
    background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
    background-position: center center; /* Centra la imagen */
    padding: 20px; /* Espaciado dentro del contenedor */
    border-radius: 10px; /* Borde redondeado (opcional) */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Sombra (opcional) */
}

.bg-maximo {
  background-color: var(--bs-success) !important;
  font-weight: bold;
}

.selected {
  font-weight: bolder !important;
  background-color: #f01d4a !important;
  color: #fff !important;
  text-align: center !important;
}

#notification-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.notification {
  background-color: #6ece5a;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  transform: translateX(-100%);
  opacity: 0;
}

dialog {
  opacity: 0;
  transform: scale(0.8);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  max-width: 400px;
  width: 90%;
  background-color: var(--bs-body-bg);
  /*var(--bs-gray-400);*/
}

dialog[open] {
  animation: openDialog 0.3s ease forwards;
}

dialog.closing {
  animation: closeDialog 0.3s ease forwards;
}

@keyframes openDialog {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes closeDialog {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

.app-toast {
  text-align: center;
  font-weight: bold;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #84d674;
  color: white;
  padding: 10px 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1100;
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.container-app {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 350px));
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  width: 350px;
  box-sizing: border-box;
}

.list-item img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.list-item a {
  flex-grow: 1;
}

.list-item a:hover {
  cursor: pointer;
}

.search-box {
  width: 440px;
  position: relative;
}

.search-box input {
  padding-left: 40px;
  height: 36px;
  border-radius: 5px;
}

.search-box .bi-search {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

@media (max-width: 768px) {
  .search-box {
    width: auto;
    flex-grow: 1;
    margin-right: 10px;
  }

  .btn-app {
    white-space: nowrap;
  }
}

.logo {
  position: relative;
}

.logo::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url("/logo.png");
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: -200;
}

.overlay {
  display: none;
  position: fixed;
  padding: 0;
  margin: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .3);
  opacity: .8;
  pointer-events: none;
}

#dotnet-compile-error {
  display: none !important;
}

.table {
  --bs-table-bg: transparent !important;
}


.chart-container {
  background: #6c6c6c;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(8, 31, 134, 0.411);
  margin-bottom: 20px;
}

canvas {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 0.95rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }

  .chart-container {
    padding: 16px;
  }

  select {
    width: 100%;
    max-width: 300px;
  }

  .legend {
    gap: 12px;
    font-size: 0.9rem;
  }
}

.logo-img {
  height: 120px;
}

.pago-body {
  height: 100%;
  margin: 0px;
  background: url('/fondos_pagos.jpeg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
}

.pango-banco-titulo {
  font-weight: bold;
  font-size: 1.2rem;
}

.pago-titulo {
  display: inline-block;
  font-weight: 800;
  font-size: 1.4rem;
  margin: auto auto;
  padding: 1px 8px;
}

.pagos-mano-icono {
  position: absolute;
  top: 15px;
  left: 30%;
  font-size: 2rem;
  color: #fff;
}

.pulse {
  animation: pulse-animation 1s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(0.8);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(0.8);
  }
}

.fade-out {
  animation: fade-out 1s ease-out forwards;
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}
/* ===========================
   BOTONES
=========================== */
.qm-btn {
    border: none;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    background: #00b300;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.2s;
}

.qm-btn:hover {
    transform: scale(1.03);
}

.qm-btn-add { background: #00aaff !important; }
.qm-btn-enviar { background: #25D366 !important; }
.qm-btn-red { background: #d90429 !important; }

/* ==== Botón sec (dobles/triples) ==== */
.qm-btn-sec {
    background: #f0f0f0;
    color: #222;
}

.qm-btn-sec.dobles-activo {
    background: #ff8c00 !important;
    color: #fff !important;
}
#btnRandom {
    background: #7e3ff2 !important; /* Morado */
    color: #fff !important;
}
/* ===========================
   BOTONES INFERIORES
=========================== */
.qm-controles2 {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.qm-controles-bottom {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.qm-controles-bottom .qm-btn {
    flex: 1;
}

#tbl-quiniela {
    position: relative; /* Asegura que la imagen se posicione dentro de la tabla */
}

#tbl-quiniela::before {
    content: ''; /* Necesario para mostrar el pseudo-elemento */
    position: absolute;
    top: 50%; /* Centra la imagen verticalmente */
    left: 52%; /* Mueve la imagen un poco menos a la derecha */
    transform: translate(-50%, -50%); /* Ajuste para centrar la imagen exactamente */
    width: 200px; /* Ajusta el tamaño de la imagen */
    height: 200px; /* Ajusta el tamaño de la imagen */
    background-image: url('https://hubmetaverso.com/wp-content/uploads/2024/05/LG-QUINIELA.png'); /* Ruta de la imagen de fondo */
    background-size: contain; /* Mantiene la proporción de la imagen */
    background-repeat: no-repeat; /* No se repite la imagen */
    background-position: center; /* Asegura que la imagen esté centrada */
    opacity: 0.2; /* Ajusta la opacidad */
    z-index: -1; /* Asegura que la imagen quede detrás de la tabla */
}


/* ===========================
   ENTRADA NOMBRE
=========================== */
.qm-nombre-row {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.qm-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 14px;
}

/* ===========================
   TABLA FINAL
=========================== */
.qm-tabla-final {
    margin-top: 16px;
    background: linear-gradient(135deg, #8e44ad, #0066cc); /* Degradado de tres tonos de azul */
    color: #fff; /* Mantengo el texto en blanco para mejor contraste */
    padding: 8px;
    border-radius: 10px;
    border: 2px solid #000;
    font-size: 13px;
    font-weight: 700;
}


.qm-save-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 2px;
}

.qm-save-row:last-child {
    margin-bottom: 0;
}

.qm-save-cols {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(10, 1fr) 1.3fr 0.8fr;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #000;
}

.qm-save-cell {
    padding: 2px 3px;
    text-align: center;
    border-left: 1px solid #000;
}

.qm-save-cell:first-child {
    border-left: none;
}

.qm-save-del {
    margin-left: 5px;
    border: none;
    background: #b00020;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* SOLO la columna del NOMBRE — celda #10 */
.qm-save-cols .qm-save-cell:nth-child(10) {
    max-width: 90px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ===========================
   VISTA PREVIA
=========================== */
.qm-preview {
    margin-top: 12px;
    background: linear-gradient(135deg, #8e44ad, #0066cc, #000000); /* verde medio → azul oscuro */
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    font-size: 15px;
    letter-spacing: 5px;
}
/* ============================
   Estilo para las celdas de selección (L, E, V)
=========================== */
.qm-pick {
    cursor: pointer;
    font-weight: bolder;
    color: #555;  /* Color de texto predeterminado */
    padding: 10px;  /* Añadido espacio para hacer la celda más clickeable */
}

/* Hover (resaltar cuando el mouse pasa por encima) */
.qm-pick:hover {
    background: #f3f3f3;
    transition: background 0.2s ease;
}

/* Estado activo de la celda (cuando es seleccionada) */
.qm-pick.activo {
    background: linear-gradient(to bottom right, #4f6dff, #0066cc);  /* Azul cuando está activa */
    color: white;  /* Cambiar el color de la letra a blanco */
}


