/* ===== CALENDARIO MUNDIAL FIFA 2026 - ESTILOS ===== */

/* Variables CSS para el calendario */
:root {
  --calendario-primary: #1e3a8a;
  --calendario-secondary: #3b82f6;
  --calendario-accent: #f59e0b;
  --calendario-success: #22c55e;
  --calendario-warning: #f59e0b;
  --calendario-danger: #ef4444;
  --calendario-info: #3b82f6;

  /* Colores de estado de partidos */
  --partido-programado: #6b7280;
  --partido-en-vivo: #ef4444;
  --partido-finalizado: #22c55e;
  --partido-suspendido: #f59e0b;

  /* Sombras y efectos */
  --calendario-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --calendario-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --calendario-border-radius: 12px;
}

/* Contenedor principal del calendario */
.calendario-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Header del calendario */
.calendario-header {
  background: linear-gradient(
    90deg,
    var(--calendario-primary),
    var(--calendario-secondary),
    var(--calendario-accent)
  );
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
  box-shadow: var(--calendario-shadow);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.fifa-logo-container {
  display: flex;
  align-items: center;
}

.fifa-logo {
  height: 80px;
  width: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.fifa-logo .svg-primary {
  fill: white;
}

.fifa-logo .svg-secondary {
  fill: var(--calendario-accent);
}

.titulo-container {
  display: flex;
  align-items: center;
}

.calendario-title {
  font-family: "Bungee Shade", "Blackout", cursive;
  font-size: 2.5rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  margin: 0;
  text-align: center;
}

.calendario-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  text-align: center;
  margin-top: 0.5rem;
}

/* Filtros Mobile-First */
.filtros-mobile {
  background: white;
  border-radius: var(--calendario-border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--calendario-shadow);
}

.filtros-principales {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.btn-filtro-fecha {
  background: linear-gradient(
    135deg,
    var(--calendario-primary),
    var(--calendario-secondary)
  );
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: var(--calendario-shadow);
}

.btn-filtro-fecha:hover {
  transform: scale(1.05);
  box-shadow: var(--calendario-shadow-hover);
  color: white;
}

.btn-filtro-fecha.active {
  background: linear-gradient(135deg, var(--calendario-accent), #f59e0b);
}

.filtro-fase {
  flex: 1;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filtro-fase:focus {
  border-color: var(--calendario-secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.btn-limpiar {
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* DatePicker oculto para mobile */
.filter-datepicker-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Selector de Equipos Carrusel */
.equipos-section {
  background: white;
  border-radius: var(--calendario-border-radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--calendario-shadow);
  overflow: hidden;
}

/* Contenedor del carrusel */
.equipos-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem;
}

.equipos-carousel {
  flex: 1;
  overflow: hidden;
  margin: 0 1rem;
}

.equipos-carousel-track {
  display: flex;
  gap: 0.75rem;
  transition: transform 0.3s ease;
  padding: 0.5rem 0;
}

/* Botones del carrusel */
.carousel-btn {
  background: linear-gradient(
    135deg,
    var(--calendario-primary),
    var(--calendario-secondary)
  );
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--calendario-shadow);
  z-index: 2;
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--calendario-shadow-hover);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.carousel-btn-left {
  margin-right: 0.5rem;
}

.carousel-btn-right {
  margin-left: 0.5rem;
}

.equipo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: #f8fafc;
  position: relative;
  min-width: 70px;
  flex-shrink: 0;
}

.equipo-item:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.equipo-item.selected {
  background: linear-gradient(
    135deg,
    var(--calendario-primary),
    var(--calendario-secondary)
  );
  border-color: var(--calendario-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.equipo-item.selected::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--calendario-accent);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.equipo-item .equipo-bandera {
  width: 32px;
  height: 24px;
  object-fit: contain;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.equipo-item .equipo-bandera[src*="data:image/svg+xml"] {
  opacity: 0.7;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
}

.equipo-item .equipo-codigo {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1;
}

.equipo-item.selected .equipo-codigo {
  color: white;
}

/* Equipos seleccionados mobile */
.equipos-seleccionados-mobile {
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.equipos-badges-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.equipo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--calendario-primary);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.equipo-badge .equipo-bandera {
  width: 20px;
  height: 15px;
  object-fit: contain;
  border-radius: 2px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.equipo-badge .equipo-bandera[src*="data:image/svg+xml"] {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.equipo-badge .btn-remove {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.125rem;
  margin-left: 0.25rem;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.equipo-badge .btn-remove:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Banner personalizable */
.banner-container {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-banner {
  max-width: 100%;
  height: auto;
  border-radius: var(--calendario-border-radius);
  box-shadow: var(--calendario-shadow);
}

/* Contenedor principal del calendario estilo Liga Argentina */
.ctn-soccer-event-overview {
  background: white;
  border-radius: var(--calendario-border-radius);
  box-shadow: var(--calendario-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Botón de tema */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--calendario-shadow);
}

/* Branding DataFactory */
.datafactory-brand {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  z-index: 1000;
}

.datafactory-brand:hover {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.datafactory-brand img {
  height: 20px;
  width: auto;
}

/* Navegación de fechas minimalista */
.fechas-navigation-carousel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* Contenedor del carrusel minimalista */
.fechas-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fechas-carousel {
  flex: 1;
  overflow: hidden;
  margin: 0 0.25rem;
}

.fechas-carousel-track {
  display: flex;
  gap: 0.5rem;
  transition: transform 0.2s ease;
  padding: 0.25rem 0;
}

/* Botones minimalistas */
.fechas-carousel-btn {
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.fechas-carousel-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.fechas-carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f9fafb;
}

/* Items de fecha minimalistas */
.fecha-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  background: #ffffff;
  min-width: 60px;
  flex-shrink: 0;
  text-align: center;
}

.fecha-item:hover {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.fecha-item.active {
  background: #1f2937;
  border-color: #1f2937;
  color: white;
}

/* Contenido minimalista */
.fecha-numero {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.125rem;
  color: #111827;
}

.fecha-mes {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #6b7280;
}

/* Estados activos minimalistas */
.fecha-item.active .fecha-numero,
.fecha-item.active .fecha-mes {
  color: white;
}

/* Navegación de fechas antigua (mantener para compatibilidad) */
.fechas-navigation {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.fechas-navigation .d-flex {
  align-items: center;
  justify-content: space-between;
}

.fecha-actual {
  text-align: center;
}

.fecha-actual h4 {
  color: var(--calendario-primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
}

.fecha-corta {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--calendario-accent);
  margin-top: 0.25rem;
}

/* Ocultar el rango de fecha */
.fecha-actual p {
  display: none;
}

/* Botones de navegación de fecha */
.btn-nav-fecha {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding: 0;
  transition: all 0.3s ease;
}

.btn-nav-fecha:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-nav-fecha:disabled {
  opacity: 0.5;
  transform: none;
  cursor: not-allowed;
}

/* Tabla de partidos estilo Liga Argentina */
.partidos-tabla {
  width: 100%;
  margin-top: 1.5rem;
}

.fecha-grupo {
  margin-bottom: 2rem;
}

.fecha-titulo {
  background: linear-gradient(
    135deg,
    var(--calendario-primary),
    var(--calendario-secondary)
  );
  color: white;
  padding: 1rem;
  border-radius: 8px 8px 0 0;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fecha-titulo i {
  font-size: 1.2rem;
}

.partidos-lista {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Contenedor de partidos con altura adaptable */
#partidosContainer {
  min-height: 200px;
}

/* Altura máxima cuando se muestran todos los partidos */
#partidosContainer.todos-los-partidos {
  max-height: 70vh;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  background: #ffffff;
}

/* Altura adaptable cuando hay filtros */
#partidosContainer.filtrado {
  max-height: none;
  overflow-y: visible;
  border: none;
  padding: 0;
  background: transparent;
}

/* Estilos para el scroll en tema oscuro */
[data-bs-theme="dark"] #partidosContainer.todos-los-partidos {
  border-color: #374151;
  background: #1f2937;
}

/* Personalización del scrollbar */
#partidosContainer.todos-los-partidos::-webkit-scrollbar {
  width: 8px;
}

#partidosContainer.todos-los-partidos::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

#partidosContainer.todos-los-partidos::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#partidosContainer.todos-los-partidos::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Scrollbar tema oscuro */
[data-bs-theme="dark"]
  #partidosContainer.todos-los-partidos::-webkit-scrollbar-track {
  background: #374151;
}

[data-bs-theme="dark"]
  #partidosContainer.todos-los-partidos::-webkit-scrollbar-thumb {
  background: #6b7280;
}

[data-bs-theme="dark"]
  #partidosContainer.todos-los-partidos::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Altura máxima responsive para mobile */
@media (max-width: 768px) {
  #partidosContainer.todos-los-partidos {
    max-height: 50vh;
  }
}

@media (max-width: 480px) {
  #partidosContainer.todos-los-partidos {
    max-height: 45vh;
    padding: 0.75rem;
  }

  /* Scrollbar más delgado en mobile */
  #partidosContainer.todos-los-partidos::-webkit-scrollbar {
    width: 6px;
  }
}

/* Desktop - asegurar alineación perfecta */
@media (min-width: 769px) {
  .partido-equipos {
    gap: 1rem;
  }

  .vs-separador {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
  }
}

/* Responsive para partido-equipos en mobile */
@media (max-width: 768px) {
  .partido-equipos {
    gap: 0.5rem;
  }

  .vs-separador {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  .equipo-nombre {
    font-size: 0.85rem;
  }

  .equipo-info {
    overflow: visible;
  }
}

@media (max-width: 480px) {
  .partido-equipos {
    gap: 0.25rem;
    align-items: flex-start;
    padding: 0.5rem 0;
  }

  .vs-separador {
    width: 35px;
    min-width: 35px;
    max-width: 35px;
    font-size: 0.65rem;
    padding: 0.15rem 0.25rem;
    margin-top: 0.25rem;
  }

  .equipo-nombre {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .equipo-info {
    overflow: visible;
    flex-direction: column;
    gap: 0.25rem;
  }

  .equipo-info.equipo-local {
    align-items: flex-end;
  }

  .equipo-info.equipo-visitante {
    align-items: flex-start;
  }

  .equipo-bandera {
    order: -1;
  }

  /* Ajustar fila de partido en mobile para nombres largos */
  .partido-fila {
    align-items: flex-start;
    padding: 0.75rem;
    min-height: auto;
  }

  .partido-hora {
    margin-top: 0.25rem;
  }

  .partido-estadio {
    margin-top: 0.25rem;
  }

  .partido-estado {
    margin-top: 0.25rem;
  }
}

/* Estados deshabilitados para navegación de fechas */
.fechas-navigation-carousel.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.fecha-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #f3f4f6 !important;
  color: #9ca3af !important;
}

[data-bs-theme="dark"] .fecha-item.disabled {
  background-color: #374151 !important;
  color: #6b7280 !important;
}

.fechas-carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: #f3f4f6;
  color: #9ca3af;
}

[data-bs-theme="dark"] .fechas-carousel-btn:disabled {
  background-color: #374151;
  color: #6b7280;
}

#btnFiltroFecha:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f3f4f6;
  color: #9ca3af;
}

[data-bs-theme="dark"] #btnFiltroFecha:disabled {
  background-color: #374151;
  color: #6b7280;
}

/* Fila de partido individual */
.partido-fila {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
}

.partido-fila:last-child {
  border-bottom: none;
}

.partido-fila:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Columnas de la fila de partido */
.partido-hora {
  min-width: 80px;
  font-weight: 600;
  color: var(--calendario-primary);
  font-size: 0.9rem;
}

/* Equipos del partido */
.partido-equipos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.equipo-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}

.equipo-info.equipo-local {
  justify-content: flex-end;
  text-align: right;
}

.equipo-info.equipo-visitante {
  justify-content: flex-start;
  text-align: left;
}

.equipo-bandera {
  width: 24px;
  height: 18px;
  object-fit: contain;
  border-radius: 2px;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.equipo-bandera[src*="data:image/svg+xml"] {
  opacity: 0.7;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
}

.equipo-nombre {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* En mobile permitir nombres en múltiples líneas */
@media (max-width: 768px) {
  .equipo-nombre {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
    max-width: none;
  }
}

.vs-separador {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--calendario-accent);
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  background: #f8fafc;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  text-align: center;
  grid-column: 2;
  flex-shrink: 0;
}

/* Resultado en el separador */
.vs-separador.con-resultado {
  background: linear-gradient(
    135deg,
    var(--calendario-primary),
    var(--calendario-secondary)
  );
  color: white;
  border-color: var(--calendario-primary);
  font-weight: 700;
}

.partido-estadio {
  min-width: 160px;
  text-align: center;
}

.estadio-nombre {
  font-size: 0.85rem;
  color: #374151;
  font-weight: 500;
  line-height: 1.2;
}

.estadio-ciudad {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.125rem;
}

.partido-estado {
  display: none;
}

.estado-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.estado-programado {
  background: #f3f4f6;
  color: #6b7280;
}

.estado-en-vivo {
  background: #fef2f2;
  color: #dc2626;
  animation: pulse 2s infinite;
}

.estado-finalizado {
  background: #f0fdf4;
  color: #16a34a;
}

.estado-suspendido {
  background: #fffbeb;
  color: #d97706;
}

/* Estadísticas de resumen */
.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--calendario-primary);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modal de historial */
.historial-modal .modal-dialog {
  max-width: 800px;
}

.historial-modal .modal-header {
  background: linear-gradient(
    90deg,
    var(--calendario-primary),
    var(--calendario-secondary)
  );
  color: white;
  border-bottom: none;
}

.historial-modal .modal-title {
  font-weight: 700;
  display: flex;
  align-items: center;
}

/* Sección equipos vs en el modal */
.equipos-vs-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}

.equipos-vs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.equipo-vs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.bandera-vs {
  width: 40px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.equipo-vs-nombre {
  font-weight: 600;
  font-size: 1rem;
  color: var(--calendario-primary);
  text-align: center;
}

.vs-separador-modal {
  background: linear-gradient(
    135deg,
    var(--calendario-primary),
    var(--calendario-secondary)
  );
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Partidos en historial con banderas */
.partido-equipos-historial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.equipo-historial {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.equipo-historial.equipo-local {
  justify-content: flex-start;
  flex-direction: row-reverse;
  text-align: right;
}

.equipo-historial.equipo-visitante {
  justify-content: flex-start;
}

.bandera-historial {
  width: 24px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.equipo-historial-nombre {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}

.resultado-historial {
  background: linear-gradient(
    135deg,
    var(--calendario-primary),
    var(--calendario-secondary)
  );
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  min-width: 80px;
  text-align: center;
}

/* Estadísticas generales */
.estadisticas-generales {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.estadisticas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.estadistica-item {
  text-align: center;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.estadistica-numero {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--calendario-primary);
  display: block;
}

.estadistica-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

/* Historial de partidos */
.historial-partidos {
  margin-top: 1.5rem;
}

.historial-section {
  margin-bottom: 2rem;
}

.historial-section h6 {
  color: var(--calendario-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--calendario-secondary);
}

/* Pestañas del historial */
.historial-tabs {
  border-bottom: 2px solid var(--calendario-secondary);
  margin-bottom: 0;
}

.historial-tabs .nav-link {
  color: #6b7280;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  padding: 0.75rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.historial-tabs .nav-link:hover {
  color: var(--calendario-primary);
  border-bottom-color: var(--calendario-accent);
  background: rgba(59, 130, 246, 0.05);
}

.historial-tabs .nav-link.active {
  color: var(--calendario-primary);
  border-bottom-color: var(--calendario-primary);
  background: rgba(59, 130, 246, 0.1);
}

.historial-tabs .nav-link i {
  margin-right: 0.5rem;
}

.historial-tab-content {
  padding-top: 1.5rem;
}

.historial-tab-content .tab-pane {
  min-height: 200px;
}

.partido-historial {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.partido-historial:hover {
  border-color: var(--calendario-secondary);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.partido-historial-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.partido-fecha-historial {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  width: 100%;
  order: -1;
}

.partido-resultado {
  font-weight: 700;
  color: var(--calendario-primary);
}

.partido-torneo {
  font-size: 0.9rem;
  color: var(--calendario-secondary);
  font-weight: 600;
  text-align: center;
}

.partido-estadio-historial {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.25rem;
  text-align: center;
}

/* Estados de carga */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid var(--calendario-secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Mensaje de error */
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem 0;
}

/* Mensaje vacío */
.empty-message {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.empty-message i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #d1d5db;
}

/* Animaciones */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .fifa-logo {
    height: 60px;
  }

  .calendario-title {
    font-size: 1.8rem;
  }

  .calendario-subtitle {
    font-size: 1rem;
  }

  .ctn-soccer-event-overview {
    padding: 0.75rem;
  }

  /* Carrusel minimalista responsive */
  .fechas-navigation-carousel {
    padding: 0.5rem;
    margin-bottom: 1rem;
  }

  .fechas-carousel-container {
    gap: 0.375rem;
  }

  .fechas-carousel {
    margin: 0 0.125rem;
  }

  .fechas-carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .fecha-item {
    min-width: 50px;
    padding: 0.375rem 0.5rem;
  }

  .fecha-numero {
    font-size: 1rem;
  }

  .fecha-mes {
    font-size: 0.7rem;
  }

  /* Navegación antigua responsive */
  .fechas-navigation {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .fechas-navigation .d-flex {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
  }

  .fecha-actual {
    flex: 1;
    min-width: 0;
  }

  .fecha-actual h4 {
    font-size: 1rem;
    margin-bottom: 0.125rem;
    line-height: 1.2;
  }

  .fecha-corta {
    font-size: 0.85rem;
    margin-top: 0.125rem;
  }

  .btn-nav-fecha {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .partido-fila {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .partido-hora {
    font-size: 0.8rem;
    min-width: auto;
    text-align: center;
    background: var(--calendario-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    align-self: flex-start;
  }

  .partido-equipos {
    width: 100%;
    justify-content: space-between;
  }

  .equipo-info {
    min-width: auto;
  }

  .partido-estadio {
    min-width: auto;
    text-align: center;
  }

  .estadio-nombre {
    font-size: 0.8rem;
  }

  .estadio-ciudad {
    font-size: 0.7rem;
  }

  .equipos-carousel-container {
    padding: 0.75rem 0;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .equipo-item {
    padding: 0.5rem 0.25rem;
    min-width: 60px;
  }

  .equipo-item .equipo-bandera {
    width: 28px;
    height: 21px;
  }

  .equipo-item .equipo-codigo {
    font-size: 0.7rem;
  }

  .fecha-titulo {
    font-size: 1rem;
    padding: 0.875rem;
  }

  .datafactory-brand {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .datafactory-brand img {
    height: 18px;
  }

  /* Equipos vs más compacto en mobile */
  .equipos-vs-container {
    gap: 1rem;
  }

  .bandera-vs {
    width: 32px;
    height: 24px;
  }

  .equipo-vs-nombre {
    font-size: 0.9rem;
  }

  .vs-separador-modal {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  /* Estadísticas en dos columnas para mobile */
  .estadisticas-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }

  .estadisticas-generales {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .estadistica-numero {
    font-size: 1.2rem;
  }

  .estadistica-label {
    font-size: 0.7rem;
  }

  .estadistica-item {
    padding: 0.6rem;
  }

  /* Ajustar partido-equipos-historial para mobile */
  .partido-equipos-historial {
    gap: 0.5rem;
  }

  .equipo-historial-nombre {
    font-size: 0.8rem;
  }

  .bandera-historial {
    width: 20px;
    height: 15px;
  }

  .resultado-historial {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    min-width: 60px;
  }

  /* Pestañas solo con iconos en mobile */
  .historial-tabs {
    justify-content: center;
  }

  .historial-tabs .nav-link {
    padding: 0.75rem;
    font-size: 1.1rem;
    min-width: 60px;
    text-align: center;
    border-radius: 8px 8px 0 0;
    flex: 1;
    max-width: 80px;
  }

  .historial-tabs .nav-link span {
    display: none;
  }

  .historial-tabs .nav-link i {
    margin-right: 0;
    font-size: 1.2rem;
  }

  .historial-tab-content {
    padding-top: 1rem;
  }

  .historial-tab-content .tab-pane {
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  .fifa-logo {
    height: 50px;
  }

  .calendario-title {
    font-size: 1.5rem;
  }

  .filtros-principales {
    gap: 0.5rem;
  }

  .btn-filtro-fecha {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .filtro-fase {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .btn-limpiar {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  /* Carrusel minimalista para pantallas pequeñas */
  .fechas-navigation-carousel {
    padding: 0.375rem;
    margin-bottom: 0.75rem;
  }

  .fechas-carousel-container {
    gap: 0.25rem;
  }

  .fechas-carousel {
    margin: 0;
  }

  .fechas-carousel-btn {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .fecha-item {
    min-width: 44px;
    padding: 0.25rem 0.375rem;
  }

  .fecha-numero {
    font-size: 0.9rem;
  }

  .fecha-mes {
    font-size: 0.65rem;
  }

  /* Navegación antigua para pantallas pequeñas */
  .fechas-navigation {
    padding: 0.75rem;
  }

  .fechas-navigation .d-flex {
    gap: 0.25rem;
  }

  .fecha-actual h4 {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .fecha-corta {
    font-size: 0.8rem;
  }

  .btn-nav-fecha {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .equipos-carousel-container {
    padding: 0.5rem 0;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .carousel-btn-left {
    margin-right: 0.25rem;
  }

  .carousel-btn-right {
    margin-left: 0.25rem;
  }

  .equipos-carousel {
    margin: 0 0.5rem;
  }

  .equipo-item {
    padding: 0.4rem 0.2rem;
    min-width: 50px;
  }

  .equipo-item .equipo-bandera {
    width: 24px;
    height: 18px;
  }

  .equipo-item .equipo-codigo {
    font-size: 0.65rem;
  }

  .equipo-bandera {
    width: 18px;
    height: 14px;
  }

  .equipo-nombre {
    font-size: 0.75rem;
  }

  .estadio-nombre {
    font-size: 0.75rem;
  }

  .estadio-ciudad {
    font-size: 0.65rem;
  }

  .fecha-titulo {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .fecha-titulo i {
    font-size: 1rem;
  }

  .datafactory-brand {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  .datafactory-brand img {
    height: 16px;
  }

  /* Equipos vs aún más compacto en pantallas pequeñas */
  .equipos-vs-container {
    gap: 0.75rem;
  }

  .bandera-vs {
    width: 28px;
    height: 21px;
  }

  .equipo-vs-nombre {
    font-size: 0.8rem;
  }

  .vs-separador-modal {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  /* Estadísticas aún más pequeñas en pantallas muy pequeñas */
  .estadisticas-grid {
    gap: 0.4rem;
  }

  .estadisticas-generales {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .estadistica-numero {
    font-size: 1rem;
  }

  .estadistica-label {
    font-size: 0.65rem;
  }

  .estadistica-item {
    padding: 0.4rem;
  }

  /* Partido historial más compacto */
  .partido-equipos-historial {
    gap: 0.25rem;
  }

  .equipo-historial-nombre {
    font-size: 0.75rem;
  }

  .bandera-historial {
    width: 18px;
    height: 14px;
  }

  .resultado-historial {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    min-width: 50px;
  }

  /* Pestañas aún más compactas en pantallas pequeñas */
  .historial-tabs .nav-link {
    padding: 0.6rem;
    font-size: 1rem;
    min-width: 50px;
  }

  .historial-tabs .nav-link i {
    margin-right: 0;
    font-size: 1.1rem;
  }

  .historial-tab-content {
    padding-top: 0.75rem;
  }

  .historial-tab-content .tab-pane {
    min-height: 120px;
  }
}

/* Flatpickr personalización */
.flatpickr-calendar {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--calendario-secondary);
  font-family: inherit;
  z-index: 9999;
  margin-top: 8px;
  overflow: visible;
}

/* Header del calendario */
.flatpickr-months {
  background: linear-gradient(
    135deg,
    var(--calendario-primary),
    var(--calendario-secondary)
  ) !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 0.75rem 3rem !important;
  position: relative !important;
}

.flatpickr-month {
  background: transparent;
  color: white;
  height: auto;
  line-height: 1;
  text-align: center;
  position: relative;
  user-select: none;
  overflow: visible;
  flex: 1;
}

.flatpickr-current-month {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
}

.flatpickr-current-month span.cur-month {
  font-family: inherit;
  font-weight: 600;
  color: white;
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0;
}

.flatpickr-current-month .numInputWrapper {
  width: 4rem;
  display: inline-block;
}

.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
  display: none;
}

.flatpickr-current-month input.cur-year {
  background: transparent;
  border: 0;
  border-radius: 0;
  vertical-align: initial;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: white;
  padding: 0;
  margin: 0;
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* Navegación de meses */
.flatpickr-prev-month,
.flatpickr-next-month {
  color: white !important;
  fill: white !important;
  cursor: pointer;
  position: absolute !important;
  top: 34px !important;
  transform: translateY(-50%) !important;
  width: 2rem !important;
  height: 2rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.3s ease;
  z-index: 10;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: rgba(255, 255, 255, 0.2);
}

.flatpickr-prev-month {
  left: 0.75rem;
}

.flatpickr-next-month {
  right: 0.75rem;
}

/* Días de la semana */
.flatpickr-weekdays {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.5rem 0;
}

.flatpickr-weekday {
  background: transparent;
  color: #6b7280;
  cursor: default;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Días del calendario */
.flatpickr-days {
  padding: 0.5rem;
}

.flatpickr-day {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  box-sizing: border-box;
  color: #374151;
  cursor: pointer;
  font-weight: 500;
  height: 2.25rem;
  line-height: 2.25rem;
  margin: 0;
  position: relative;
  text-align: center;
  width: 2.25rem;
  transition: all 0.2s ease;
}

.flatpickr-day:hover {
  background: var(--calendario-primary);
  color: white;
  transform: scale(1.05);
}

.flatpickr-day.selected {
  background: var(--calendario-secondary);
  border-color: var(--calendario-secondary);
  color: white;
  font-weight: 600;
}

.flatpickr-day.today {
  background: var(--calendario-accent);
  color: white;
  font-weight: 600;
}

.flatpickr-day.today:hover {
  background: var(--calendario-accent);
  color: white;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
  background: transparent;
  border-color: transparent;
  color: #d1d5db;
  cursor: default;
  transform: none;
}

.flatpickr-day.nextMonthDay,
.flatpickr-day.prevMonthDay {
  color: #9ca3af;
}

.flatpickr-day.nextMonthDay:hover,
.flatpickr-day.prevMonthDay:hover {
  background: #f3f4f6;
  color: #6b7280;
}

/* Tema oscuro */
[data-bs-theme="dark"] .calendario-page {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

[data-bs-theme="dark"] .ctn-soccer-event-overview {
  background: #374151;
  border-color: #4b5563;
}

[data-bs-theme="dark"] .filtros-mobile {
  background: #374151;
  border-color: #4b5563;
}

[data-bs-theme="dark"] .equipos-section {
  background: #374151;
  border-color: #4b5563;
}

[data-bs-theme="dark"] .filtro-fase {
  background: #4b5563;
  border-color: #6b7280;
  color: white;
}

[data-bs-theme="dark"] .equipos-seleccionados-mobile {
  background: #4b5563;
  border-color: #6b7280;
}

[data-bs-theme="dark"] .carousel-btn {
  background: linear-gradient(135deg, #4b5563, #6b7280);
}

[data-bs-theme="dark"] .carousel-btn:hover {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
}

[data-bs-theme="dark"] .carousel-btn:disabled {
  background: #374151;
  opacity: 0.5;
}

[data-bs-theme="dark"] .partido-fila {
  background: #374151;
  border-color: #4b5563;
}

[data-bs-theme="dark"] .partido-fila:hover {
  background: #4b5563;
}

[data-bs-theme="dark"] .partidos-lista {
  border-color: #4b5563;
}

[data-bs-theme="dark"] .vs-separador {
  background: #4b5563;
  border-color: #6b7280;
  color: #d1d5db;
}

[data-bs-theme="dark"] .equipo-nombre {
  color: #d1d5db;
}

[data-bs-theme="dark"] .estadio-nombre {
  color: #d1d5db;
}

[data-bs-theme="dark"] .estadio-ciudad {
  color: #9ca3af;
}

[data-bs-theme="dark"] .filter-select {
  background: #4b5563;
  border-color: #6b7280;
  color: white;
}

[data-bs-theme="dark"] .estado-programado {
  background: #4b5563;
  color: #9ca3af;
}

/* Tema oscuro minimalista */
[data-bs-theme="dark"] .fechas-navigation-carousel {
  background: #1f2937;
  border-color: #374151;
}

[data-bs-theme="dark"] .fechas-carousel-btn {
  background: #374151;
  color: #9ca3af;
  border-color: #4b5563;
}

[data-bs-theme="dark"] .fechas-carousel-btn:hover {
  background: #4b5563;
  border-color: #6b7280;
}

[data-bs-theme="dark"] .fechas-carousel-btn:disabled {
  background: #374151;
  opacity: 0.4;
}

[data-bs-theme="dark"] .fecha-item {
  background: #1f2937;
  color: #d1d5db;
}

[data-bs-theme="dark"] .fecha-item:hover {
  background: #374151;
  border-color: #4b5563;
}

[data-bs-theme="dark"] .fecha-item.active {
  background: #f3f4f6;
  border-color: #f3f4f6;
  color: #1f2937;
}

[data-bs-theme="dark"] .fecha-numero {
  color: #d1d5db;
}

[data-bs-theme="dark"] .fecha-mes {
  color: #9ca3af;
}

[data-bs-theme="dark"] .fecha-item.active .fecha-numero,
[data-bs-theme="dark"] .fecha-item.active .fecha-mes {
  color: #1f2937;
}

/* Tema oscuro para navegación antigua */
[data-bs-theme="dark"] .fechas-navigation {
  border-color: #4b5563;
}

[data-bs-theme="dark"] .fecha-corta {
  color: #fbbf24;
}

[data-bs-theme="dark"] .partido-historial {
  background: #4b5563;
  border-color: #6b7280;
}

[data-bs-theme="dark"] .partido-fecha-historial {
  color: #9ca3af;
}

[data-bs-theme="dark"] .partido-estadio-historial {
  color: #9ca3af;
}

[data-bs-theme="dark"] .equipo-item {
  background: #4b5563;
  color: #d1d5db;
}

[data-bs-theme="dark"] .equipo-item:hover {
  background: #6b7280;
}

[data-bs-theme="dark"] .filter-datepicker {
  background-color: #4b5563;
  border-color: #6b7280;
  color: white;
}

/* Tema oscuro para Flatpickr */
[data-bs-theme="dark"] .flatpickr-calendar {
  background: #374151;
  border-color: #6b7280;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .flatpickr-months {
  background: linear-gradient(135deg, #4b5563, #6b7280);
}

[data-bs-theme="dark"] .flatpickr-weekdays {
  background: #4b5563;
  border-color: #6b7280;
}

[data-bs-theme="dark"] .flatpickr-weekday {
  color: #9ca3af;
}

[data-bs-theme="dark"] .flatpickr-day {
  color: #d1d5db;
}

[data-bs-theme="dark"] .flatpickr-day:hover {
  background: #6b7280;
  color: white;
}

[data-bs-theme="dark"] .flatpickr-day.selected {
  background: #3b82f6;
  color: white;
}

[data-bs-theme="dark"] .flatpickr-day.today {
  background: #f59e0b;
  color: white;
}

[data-bs-theme="dark"] .flatpickr-day.disabled {
  color: #6b7280;
}

[data-bs-theme="dark"] .flatpickr-day.nextMonthDay,
[data-bs-theme="dark"] .flatpickr-day.prevMonthDay {
  color: #6b7280;
}

[data-bs-theme="dark"] .flatpickr-day.nextMonthDay:hover,
[data-bs-theme="dark"] .flatpickr-day.prevMonthDay:hover {
  background: #4b5563;
  color: #9ca3af;
}

/* Tema oscuro para modal de historial */
[data-bs-theme="dark"] .equipos-vs-section {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  border-color: #6b7280;
}

[data-bs-theme="dark"] .equipo-vs-nombre {
  color: #60a5fa;
}

[data-bs-theme="dark"] .equipo-historial-nombre {
  color: #d1d5db;
}

/* Tema oscuro para pestañas del historial */
[data-bs-theme="dark"] .historial-tabs {
  border-bottom-color: #6b7280;
}

[data-bs-theme="dark"] .historial-tabs .nav-link {
  color: #9ca3af;
}

[data-bs-theme="dark"] .historial-tabs .nav-link:hover {
  color: #60a5fa;
  border-bottom-color: #fbbf24;
  background: rgba(96, 165, 250, 0.1);
}

[data-bs-theme="dark"] .historial-tabs .nav-link.active {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
}
