/* NEQUI FORM */

/* Estilo para el formulario */
#nequi-form {
  padding: 20px;
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
  animation: fadeIn 0.3s ease-in-out;
}

.campo-numero,
.campo-valor {
  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: left;
  margin-bottom: 20px;
}

.campo-numero label,
.campo-valor label {
  font-size: 14px;
  color: #000;
  margin-bottom: 8px;
  position: relative;
  font-family: "Poppins", sans-serif;
}

.campo-numero input[type="text"],
.campo-valor input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background-color: #fff;
  transition: border-color 0.3s;
  font-family: "Poppins", sans-serif;
}

.campo-numero input[type="text"]:focus,
.campo-valor input[type="text"]:focus {
  border-color: #c1578e;
  outline: none;
}

#nequi-form input[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #c1578e;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: "Poppins", sans-serif;
}

.campo-boton {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

#nequi-form input[type="submit"]:hover {
  background-color: rgb(126, 26, 78);
}

/* Respuestas */
#nequi-response {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  font-size: 16px;
  text-align: center;
  width: 420px;
  border-radius: 12px;
}

#estado-respuesta {
  margin-top: 20px;
  padding: 15px;
  font-size: 16px;
  text-align: center;
  color: #856404;
  transition: all 0.3s ease;
  width: 420px;
  border-radius: 12px;
}

#estado-respuesta.success,
#nequi-response.success {
  background-color: #d4edda !important;
  color: #155724 !important;
}

#estado-respuesta.error,
#nequi-response.error {
  background-color: #f8d7da !important;
  color: #721c24 !important;
}

#estado-respuesta.loading,
#nequi-response.loading {
  background-color: #fff3cd;
  color: #856404;
}

/* Modal */
#modal-comprobante {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

#modal-comprobante .modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: 90%;
  animation: slideUp 0.4s ease-in-out;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#modal-comprobante h3 {
  margin-top: 0;
  font-size: 24px;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

#modal-comprobante p {
  margin: 10px 0;
  font-size: 16px;
  color: #000;
}

#modal-comprobante span {
  font-weight: 600;
  color: #000;
}

#modal-comprobante button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #c1578e;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#modal-comprobante button:hover {
  background-color: rgb(150, 37, 95);
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tabla historial pagos */
h1 {
  margin-bottom: 20px !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

thead a {
  background-color: trasnparent;
  color: #000;
  text-decoration: none;
  padding-bottom: 10px;
  display: flex;
  justify-content: left;
  align-items: left;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

table th {
  background-color: #f4f4f4;
  color: #333;
}

table tr:nth-child(even) {
  background-color: #fafafa;
}

table tr:hover {
  background-color: #f1f1f1;
}

table td {
  color: #333;
}

/* Pintar los estados */
span.pago-exitoso {
  background: #d4edda;
  color: #155724;
  padding: 3px 10px;
  border-radius: 5px;
  font-weight: 600;
  display: inline-block;
}
span.pago-pendiente {
  background: #fff3cd;
  color: #856404;
  padding: 3px 10px;
  border-radius: 5px;
  font-weight: 600;
  display: inline-block;
}
span.pago-fallido {
  background: #f8d7da;
  color: #721c24;
  padding: 3px 10px;
  border-radius: 5px;
  font-weight: 600;
  display: inline-block;
}

/* Paginador */
.tablenav-pages {
  margin: 16px 0 0 0;
  text-align: center;
  font-size: 16px;
  padding-top: 5px;
}

.tablenav-pages a {
  background: #f4f4f4;
  color: #0073aa;
  border: 1px solid #ccd0d4;
  padding: 4px 10px;
  margin: 0 2px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.tablenav-pages a:hover {
  background: #0073aa;
  color: #fff;
}

.tablenav-pages .current {
  background: #0073aa;
  color: #fff;
  border: 1px solid #0073aa;
  padding: 4px 10px;
  margin: 0 2px;
  border-radius: 4px;
  font-weight: bold;
}

/* Filtros */

#nequi-actualizar-tabla:hover {
  background-color: #005177;
}

#nequi-actualizar-tabla .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  line-height: 1;
  vertical-align: middle;
}

/* Campo de búsqueda */

#nequi-busqueda-form {
  display: flex !important;
  justify-content: left;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
  gap: 10px;
}

#nequi-eliminar-filtros,
#nequi-buscar-filtros,
#nequi-exportar-csv,
#nequi-actualizar-tabla {
  background-color: #0073aa !important;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  padding: 8px 20px;
  font-family: "Poppins", sans-serif;
}

#nequi-eliminar-filtros:hover,
#nequi-buscar-filtros:hover,
#nequi-exportar-csv:hover,
#nequi-actualizar-tabla:hover {
  background-color: #005177 !important;
}

#input-buscar-filtros {
  padding: 8px 12px !important;
  border-radius: 10px !important;
  border: 1px solid #ddd !important;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
}

#nequi-exportar-csv {
  margin: 0 !important;
}

#nequi-eliminar-filtros {
  margin: 0 !important;
}

#nequi-actualizar-tabla {
  margin: 0 !important;
}

@media (min-width: 768px) {
  #input-buscar-filtros {
    width: 300px;
  }

  .nequi-exportar-csv {
    display: flex;
    justify-content: right;
    align-items: center;
    padding-top: 10px;
  }
}

@media (max-width: 500px) {
  #nequi-busqueda-form {
    display: flex !important;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 10px;
  }

  #input-buscar-filtros {
    width: 300px !important;
  }
}

#modal-reversion-nequi {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#modal-reversion-nequi[style*="display: flex"] {
  display: flex !important;
}
#modal-reversion-nequi .modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 30px 40px;
  min-width: 300px;
  text-align: center;
  position: relative;
}
