/* ===================== HERO ADMIN ===================== */

.home-page-section-admin {
    min-height: 100vh;
    background-image: url('/images/cancha9.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}

.home-page-section-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);

}
.home-page-section-admin .container {
    position: relative;

}



.admin-hero {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.admin-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(75%);
}

.admin-hero-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  width: min(92%, 820px);
  min-width: 240px;
  max-width: 880px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.admin-hero-info h3 {
  margin: 0 0 .5rem 0;
  font-weight: 700;
  font-size: 1.4rem;
}

.admin-hero-info p {
  margin: .3rem 0;
  font-size: 0.95rem;
}

/* ===================== QR ADMIN ===================== */
.admin-hero-qr {
  display: inline-block;
  margin-top: .8rem;
}

.admin-hero-qr img {
  max-width: 120px;
  max-height: 120px;
  border-radius: .4rem;
  display: block;
}

.qr-hover {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-hover:hover {
  transform: scale(1.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

/* ===================== QR ADMIN (compacto / responsive) ===================== */
.admin-qr-block {
  background-color: rgba(0,0,0,0.05);
  min-width: 180px;
  padding: 1rem;
  border-radius: .5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

/* Imagen QR compacta */
.admin-qr-img {
  width: 140px;
  max-width: 100%;
  height: auto;
  border-radius: .4rem;
  transition: transform .25s ease, box-shadow .25s ease;
  display: block;
  margin: 0 auto .5rem;
}

.admin-qr-img:hover {
  transform: scale(1.25);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

/* Título más discreto */
.admin-qr-block .qr-title {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: .5rem;
  background-color: rgba(0,0,0,0.45);
  margin-bottom: .25rem;
  font-size: .95rem;
  color: #fff;
}

/* Form upload compacto */
.admin-qr-block .qr-upload-form {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .25rem;
  width: 100%;
}

/* Inputs más pequeños dentro del form */
.admin-qr-block .qr-upload-form .form-control {
  width: auto;
  min-width: 90px;
  max-width: 160px;
  height: calc(1.5em + .5rem + 2px);
}

/* ===================== Extras: badges / botones ===================== */
.btn-glow {
  position: relative;
  transition: all .25s ease;
  font-weight: 700;
}

.btn-glow.btn-glow-active {
  box-shadow: 0 0 12px rgba(255,193,7,.85);
  transform: translateY(-2px);
}

/* Estilo específico para el botón "Ver capture" */
.btn-ver-comprobante {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-ver-comprobante:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-ver-comprobante:active {
  transform: translateY(0);
}

/* ===================== Estilos del Modal ===================== */
/* Z-index para modal y backdrop */
.modal-backdrop {
  z-index: 1040 !important;
}

.modal {
  z-index: 1050 !important;
}

/* Modal content */
.modal-content {
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.modal-body {
  padding: 1.5rem;
}

/* Contenedor de imagen - CENTRADO PERFECTO */
.image-container {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

/* Estado de carga */
#image-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#image-loading .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Estado de imagen cargada - CENTRADO */
#image-loaded {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* La imagen en sí - CENTRADA Y RESPONSIVA */
#pp-image {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#pp-image:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Estado sin imagen */
#no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#no-image .alert {
  max-width: 80%;
  text-align: center;
}

/* ===================== Panel Admin Additions ===================== */
.card-header strong {
  font-size: 1.05rem;
}

.list-group-item {
  cursor: grab;
}

.list-group-item:active {
  cursor: grabbing;
}

.pos-label {
  font-weight: 600;
  color: #333;
}

.btn-outline-danger {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.btn-outline-danger:hover {
  background-color: #ff6b6b;
  color: white;
}

/* Toast notifications */
.toast.text-bg-danger,
.toast.text-bg-success {
  opacity: 0.95;
}

/* Estilo para el botón de confirmar en el modal */
#confirm-btn {
  position: relative;
  transition: all 0.3s ease;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
}

#confirm-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#confirm-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Animación para el spinner dentro del botón */
#confirm-btn .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* ===================== Solución para problemas de modal ===================== */
/* Asegurar que el modal no cause problemas de scroll */
.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

/* Prevenir el problema del backdrop */
body.modal-open {
  overflow: hidden;
  padding-right: 0 !important;
}

/* Eliminar cualquier padding-right que Bootstrap pueda agregar */
body.modal-open {
  padding-right: 0px !important;
}

/* Asegurar que el contenido del modal sea scrollable si es muy largo */
.modal-body {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

/* Botones del modal footer */
.modal-footer .btn {
  min-width: 120px;
}

/* ===================== Mejorar visualización de imágenes general ===================== */
.img-fluid {
  transition: transform 0.3s ease;
}

.img-fluid:hover {
  transform: scale(1.02);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .admin-qr-block {
    min-width: 160px;
    padding: .75rem;
  }

  .admin-qr-img {
    width: 130px;
  }
}

@media (max-width: 768px) {
  .admin-hero {
    height: 60vh;
  }

  .admin-qr-block {
    min-width: 140px;
    padding: .6rem;
  }

  .admin-qr-img {
    width: 120px;
  }

  .admin-hero-info {
    width: 92%;
    padding: 1rem;
  }

  /* Responsive para modal */
  .image-container {
    min-height: 250px;
    padding: 15px;
  }

  #pp-image {
    max-height: 300px;
  }

  .modal-dialog {
    margin: 0.5rem !important;
  }

  /* Ajustar botones del modal footer en móviles */
  .modal-footer {
    flex-direction: column;
    gap: 10px;
  }

  .modal-footer .btn {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 576px) {
  .image-container {
    min-height: 200px;
    padding: 10px;
    border-width: 1px;
  }

  #pp-image {
    max-height: 250px;
  }
}

@media (max-width: 420px) {
  .admin-hero {
    height: 50vh;
  }

  .admin-hero-info {
    padding: .8rem;
    border-radius: .75rem;
  }

  .admin-hero-info h3 {
    font-size: 1rem;
  }

  .admin-qr-img {
    width: 100px;
  }
}

/* Ajustes para pantallas muy grandes */
@media (min-width: 1400px) {
  .image-container {
    min-height: 350px;
  }

  #pp-image {
    max-height: 450px;
  }
}

/* Clase para mensajes de error en imágenes */
.image-error {
  text-align: center;
  padding: 10px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
  margin-top: 10px;
}

/* Estilos para toast notifications personalizados */
#toast-container-panel .toast {
  border: none;
  overflow: hidden;
  position: relative;
}

#toast-container-panel .toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: currentColor;
}

#toast-container-panel .toast .btn-close {
  font-size: 0.75rem;
  padding: 0.5rem;
}

#carruselPartidos .carousel-item {
    min-height: 400px;
    background-color: #2c3e50; /* color oscuro de respaldo */
}
/* Ajustes para el overlay del carrusel en móviles */
@media (max-width: 767.98px) {
    .carousel-caption {
        width: 98% !important;
        padding: 0.5rem !important;
        font-size: 0.75rem;
    }
    .carousel-caption h1 {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }
    .carousel-caption .row {
        margin: 0;
    }
    .carousel-caption .col-6 {
        padding: 2px;
    }
    .carousel-caption p {
        margin-bottom: 2px;
    }
    .carousel-caption .btn-sm {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }


}
.modal-content.fifa-card {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 0 20px #ffd700, 0 10px 30px rgba(0,0,0,0.5) !important;
}