

/* Título del panel */
.title-form {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

/* Secciones de configuración */
.config-section {
  margin-bottom: 25px;
}

/* Texto descriptivo */
.text {
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
}

/* Inputs generales */
.form__input {
  width: 90%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form__input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Inputs pequeños (número de filas, columnas) */
.form__input-small {
  width: 80px;
  padding: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

/* Contenedor para inputs de filas y columnas */
.grid-config {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Grupo individual de input con label */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-group label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

/* Botón principal para generar configuración */
.btn-generate {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-generate:hover {
  background: #0056b3;
}

/* Botón de ayuda "?" */
.help-btn {
  background: #f19696;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 6px;
}

.help-btn:hover {
  background: #0056b3;
  transform: scale(1.1);
}

/* Icono dentro del botón de ayuda */
.help-icon {
  color: white;
  font-size: 12px;
  font-weight: bold;
  font-style: normal;
  user-select: none;
}

/* Tooltip de ayuda */
.help-tooltip {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
  font-size: 13px;
  color: #495057;
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

.help-tooltip::before {
  content: "💡";
  margin-right: 6px;
}

/* Para que los inputs y botones se alineen bien en la fila */
.input-with-help {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.example-tab-button{
 width: 40%;
  background: #007bff;
  border: none;
  color: #dee2e6 !important;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 10px;
  margin-right: 15px;

}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .grid-config {
    flex-direction: column;
    gap: 12px;
  }

  .help-btn {
    width: 20px;
    height: 20px;
  }

  .help-icon {
    font-size: 11px;
  }
  /* Media query para pantallas medianas (tablets y móviles grandes) */
@media (max-width: 768px) {
  .grid-config {
    flex-direction: column;
    gap: 12px;
  }

  .help-btn {
    width: 20px;
    height: 20px;
  }

  .help-icon {
    font-size: 11px;
  }

  .form__input,
  .form__input-small {
    width: 100%;
  }

  .btn-generate {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }

  .example-tab-button {
    width: 100%;
    margin: 8px 0;
    font-size: 14px;
  }

  .title-form {
    font-size: 16px;
    padding-bottom: 8px;
  }

  .text {
    font-size: 14px;
  }

  .help-tooltip {
    font-size: 12px;
    padding: 10px;
  }

  .input-group label {
    font-size: 11px;
  }
}

/* Media query para teléfonos pequeños */
@media (max-width: 480px) {
  .grid-config {
    flex-direction: column;
    gap: 10px;
  }

  .form__input,
  .form__input-small {
    font-size: 13px;
    padding: 10px;
  }

  .btn-generate {
    font-size: 13px;
    padding: 8px;
  }

  .help-btn {
    width: 18px;
    height: 18px;
  }

  .help-icon {
    font-size: 10px;
  }

  .example-tab-button {
    font-size: 13px;
    padding: 8px;
  }

  .title-form {
    font-size: 15px;
  }

  .help-tooltip {
    font-size: 11px;
    padding: 8px;
  }
  .form__input-small.invalid {
  border: 2px solid red;
  background-color: #ffe5e5;
}


  .input-with-help {
    flex-direction: column;
    align-items: flex-start;
  }

  .input-group {
    width: 100%;
  }

  .form__input {
    width: 100%;
  }
}

}
