/* columna-izquierda.css - Estilos para la columna izquierda de filtros */

/* Reset de box-sizing para todos los elementos */
* {
  box-sizing: border-box;
}

/* Contenedor principal de filtros */
.filtros-contenedor {
  padding: 20px 15px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  margin: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  height: calc(100% - 30px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Título de la sección */
.filtros-contenedor h3 {
  color: #2c5f6e;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4a9eb3;
  font-size: 1.2rem;
}

/* Grupo de filtros individual */
.filtro-grupo {
  margin-bottom: 20px;
}

.filtro-grupo label {
  display: block;
  font-weight: 600;
  color: #2c5f6e;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.filtro-grupo select,
.filtro-grupo input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
  transition: all 0.3s ease;
}

.filtro-grupo select:focus,
.filtro-grupo input:focus {
  outline: none;
  border-color: #4a9eb3;
  box-shadow: 0 0 0 3px rgba(74, 158, 179, 0.1);
}

/* Botón para añadir pescador */
.btn-agregar-pescador {
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-agregar-pescador:hover {
  background: #19672b;
}

/* Botón para añadir concurso */
.btn-agregar-concurso {
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  background: #6f42c1;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-agregar-concurso:hover {
  background: #5a32a3;
}

/* ============================================ */
/* SECCIÓN DE PESCADORES SELECCIONADOS */
/* ============================================ */

.pescadores-seleccionados {
  margin-bottom: 20px;
  padding: 12px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.pescadores-seleccionados h4 {
  color: #555;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: bold;
}

.lista-pescadores-filtro {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

/* Contenedor de cada pescador - La X siempre a la derecha */
.tag-pescador {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  margin: 0;
  font-size: 0.9rem;
  color: #333;
  border-bottom: 1px solid #eee;
  width: 100%;
  box-sizing: border-box;
}

.tag-pescador:last-child {
  border-bottom: none;
}

/* Botón de eliminar pescador (X) */
.btn-remover-pescador {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 2px 6px;
  margin: 0;
  color: #ff0000;
  transition: color 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  width: auto;
  min-width: 20px;
  height: auto;
  border-radius: 0;
}

.btn-remover-pescador:hover {
  color: #c0392b;
}

/* ============================================ */
/* SECCIÓN DE CONCURSOS SELECCIONADOS */
/* ============================================ */

.concursos-seleccionados {
  margin-bottom: 20px;
  padding: 12px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.concursos-seleccionados h4 {
  color: #555;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: bold;
}

.lista-concursos-filtro {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

/* Contenedor de cada concurso - La X siempre a la derecha */
.tag-concurso {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  margin: 0;
  font-size: 0.9rem;
  color: #333;
  border-bottom: 1px solid #eee;
  width: 100%;
  box-sizing: border-box;
}

.tag-concurso:last-child {
  border-bottom: none;
}

/* Botón de eliminar concurso (X) - Mismo estilo que el de pescadores */
.btn-remover-concurso {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 2px 6px;
  margin: 0;
  color: #ff0000;
  transition: color 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  width: auto;
  min-width: 20px;
  height: auto;
  border-radius: 0;
}

.btn-remover-concurso:hover {
  color: #c0392b;
}

/* ============================================ */
/* ESTILOS ADICIONALES (por compatibilidad) */
/* ============================================ */

/* Elemento individual de pescador - La X siempre a la derecha */
.pescador-filtro-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  margin: 0;
  font-size: 0.9rem;
  color: #333;
  border-bottom: 1px solid #eee;
  width: 100%;
  box-sizing: border-box;
}

.pescador-filtro-item:last-child {
  border-bottom: none;
}

.pescador-filtro-item span {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.btn-eliminar-pescador {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 2px 6px;
  margin: 0;
  color: #999;
  transition: color 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  width: auto;
  min-width: 20px;
  height: auto;
  border-radius: 0;
}

.btn-eliminar-pescador:hover {
  color: #ff0000;
}

/* ============================================ */
/* BOTONES DE FILTRO */
/* ============================================ */

.botones-filtro {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.botones-filtro button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

#btnAplicarFiltros {
  background: #46b5a5;
  color: white;
}

#btnAplicarFiltros:hover {
  background: #35967f;
}

#btnLimpiarFiltros {
  background: #ff0000;
  color: white;
}

#btnLimpiarFiltros:hover {
  background: #c0392b;
}

/* ============================================ */
/* MENSAJE DE FILTRO */
/* ============================================ */

.mensaje-filtro {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
  display: none;
}

.mensaje-filtro.exito {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.mensaje-filtro.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

.mensaje-filtro.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
  display: block;
}

/* ============================================ */
/* SCROLL PERSONALIZADO */
/* ============================================ */

.filtros-contenedor::-webkit-scrollbar {
  width: 8px;
}

.filtros-contenedor::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.filtros-contenedor::-webkit-scrollbar-thumb {
  background: #4a9eb3;
  border-radius: 4px;
}

.filtros-contenedor::-webkit-scrollbar-thumb:hover {
  background: #3a7e8f;
}

/* Estado vacío */
.lista-pescadores-filtro .empty-message,
.lista-concursos-filtro .empty-message {
  color: #999;
  font-size: 0.8rem;
  font-style: italic;
  padding: 4px 0;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

@media (max-width: 768px) {
  .filtros-contenedor {
    margin: 10px;
    padding: 15px 10px;
  }
  
  .botones-filtro {
    flex-direction: column;
    gap: 8px;
  }
}