

/* === Panel principal === */
.f7panel {
  background-color: #0f1c2e;
  color: white;
  padding: 2.5rem !important;
  border-radius: 1rem;
  font-family: 'Segoe UI', sans-serif;
  max-width: 900px;
  margin: 2rem auto !important;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  overflow-x: auto;
}

/* Override panel en tema claro */
body.theme-light .f7panel {
  background-color: #f1f1f1;
  color: #111;
}

/* === Cabeceras visibles === */
.f7panel h2,
.f7panel h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  display: block;
  color: inherit;
}

/* === Tablas === */
.f7panel table {
  width: 100%;
  border-collapse: collapse;
}

.f7panel th,
.f7panel td {
  padding: 8px;
  text-align: left;
  background-color: #1e2a38;
  border: 1px solid #2f3e50;
}

.f7panel table input[type='text'] {
  padding: 8px;
  height: 2.4rem;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.95rem;
}

/* === Formularios generales === */
.f7panel label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: block;
  color: #ddd;
  display: flex;
  align-items: center;
}

.f7panel input[type='file'],
.f7panel input[type='text'],
.f7panel input[type='submit'],
.f7panel button {
  width: 100%;
  padding: 0;
  border-radius: 6px;
  border: none;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.f7panel input[type='submit'] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #e25e2e;
  color: white;
  padding: 14px;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.f7panel input[type='submit']:hover {
  background-color: #ff774e;
}

/* Ajustar área de formulario */
.f7panel.formulario-generador {
  max-width: 600px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* === Botón de Tema === */
.boton-tema {
  padding: 10px 16px;
  background: linear-gradient(to right, #444, #888);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
}

/* === Responsive básico === */
@media (max-width: 600px) {
  .f7panel {
    padding: 1.5rem;
  }
  .f7panel h2 {
    font-size: 1.2rem;
  }
}

/* === Panel tipo hoja de cálculo para jugadores === */
.f7panel.tabla-jugadores {
  max-width: 1100px;
  padding: 2rem;
  margin: 2rem auto;
  overflow-x: auto;
}

.f7panel.tabla-jugadores table input[type='text'] {
  padding: 4px;
  height: 1.8rem;
  font-size: 0.9rem;
  margin: 0;
}

.f7panel.tabla-jugadores td {
  padding: 4px 6px;
}

.f7panel.tabla-jugadores input[type='file'] {
  padding: 6px;
  font-size: 0.9rem;
}

/* === Botones personalizados para archivos === */
.custom-file {

  position: relative;
  width: 100%;
  margin-bottom: 1rem;
  height: auto;
}

.custom-file input[type='file'] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 45px;
  opacity: 0;
  z-index: 3;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.custom-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  background-color: #1e2a38;
  color: white;
  border: 1px solid #334860;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  z-index: 2;
  position: relative;
  transition: background-color 0.3s;
  padding: 0 1rem;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.custom-file-label:hover {
  background-color: #2a3b52;
}

.custom-file-name {
  margin: 0.4rem 0 1rem 0;
  font-size: 0.85rem;
  color: #ccc;
  text-align: center;
}

.custom-file:last-of-type .custom-file-name {
  margin-bottom: 2rem;
}

/* === Botón personalizado para subir archivos === */
.f7file-button {
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.25em;
  background-color: #1f3b57;
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  width: 100%;
  position: relative;
  text-align: center;
  margin-bottom: 0.5rem;
}

.f7file-button input[type='file'] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* === Espaciado inferior para botón de generación === */
.generar-carnets {
  margin-top: 2rem;
}

/* === Botones de input: centrado de texto con ícono === */
input[type='file']::file-selector-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1em;
  font-weight: bold;
  border-radius: 6px;
  background-color: #1f3b57;
  color: white;
  border: none;
  cursor: pointer;
}


/* Panel de gestión de clubes */









.clubes-alert {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
}
.clubes-alert.success {
  background-color: #dff0d8;
  color: #3c763d;
}
.clubes-alert.error {
  background-color: #f2dede;
  color: #a94442;
}

.widefat td {
  vertical-align: middle;
}

/* === Correcciones visuales para el formulario de clubes === */
.clubes-form {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Reutilizamos la apariencia de formulario generador */
.f7panel.formulario-generador form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Etiquetas y botones bien alineados */
.f7panel label,
.custom-file-label {
  display: flex;
  align-items: center;
}

/* Inputs alineados al panel */
.f7panel input[type='text'] {
  background-color: #fff;
  color: #000;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}


/* === Correcciones para evitar desbordes laterales === */
.f7panel .clubes-form,
.f7panel .clubes-form form,
.f7panel .clubes-form input[type='text'],
.f7panel .clubes-form button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* Estilos adicionales para el generador de fixture */
.f7grupo {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.f7grupo label {
  font-weight: bold;
  font-size: 16px;
}

.f7grupo input[type="file"],
.f7grupo select,
.f7grupo input[type="text"] {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  max-width: 300px;
}

.f7grupo.botones-fila {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.btn-accion {
  background-color: #f26522;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
  max-width: 460px;
}

.btn-accion:hover {
  background-color: #d4551a;
}
