/**
 * Overview Styles for BizidTest plugin - CORREGIDO
 * Estilos CSS completos para el overview
 */

/* ==========================================================================
   IMPORTS & FONTS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Syne:wght@400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   CSS VARIABLES & COLOR PALETTE
   ========================================================================== */

:root {
  /* Base Colors */
  --bg-primary: #08052d;
  --bg-secondary: #111318;
  --bg-card: #2b364b;
  --bg-accent: #252a32;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a8b3;
  --text-muted: #6b7280;
  
  /* Accent Colors */
  --accent-primary: #4f9cf9;
  --accent-secondary: #7c3aed;
  --accent-success: #00d084;
  --accent-warning: #ff8c42;
  --accent-error: #ef4444;
  --accent-info: #06b6d4;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4f9cf9 0%, #6366f1 100%);
  --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #00d084 0%, #00b574 100%);
  --gradient-warning: linear-gradient(135deg, #ff8c42 0%, #ff7a28 100%);
  --gradient-info: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 20px rgba(79, 156, 249, 0.3);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-numbers: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Graphinia Color Palette */
  --graphinia-primary: #3B82F6;
  --graphinia-secondary: #10B981;
  --graphinia-tertiary: #F59E0B;
  --graphinia-quaternary: #EF4444;
  --graphinia-purple: #8B5CF6;
  --graphinia-pink: #EC4899;
  --graphinia-indigo: #6366F1;
  --graphinia-teal: #14B8A6;
  --graphinia-cyan: #06B6D4;
}

/* ==========================================================================
   MAIN CONTAINER - CORREGIDO
   ========================================================================== */

.modern-overview-container {
  background: #000000 !important;
  color: var(--text-primary) !important;
  font-family: var(--font-family) !important;
  max-width: 100% !important;
  padding: 32px !important;
  border-radius: 24px !important;
  box-shadow: var(--shadow-lg) !important;
  margin: 20px auto !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  min-height: 600px !important;
}

.modern-overview-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(50deg, var(--graphinia-primary), #48d1e2, #00a2cd);
  z-index: 1;
}

.modern-overview-container > * {
  position: relative;
  z-index: 2;
}

/* FORZAR OVERRIDE DE WORDPRESS */
.modern-overview-container,
.modern-overview-container * {
  box-sizing: border-box !important;
}

.modern-overview-container h1,
.modern-overview-container h2,
.modern-overview-container h3,
.modern-overview-container p,
.modern-overview-container div {
  color: inherit !important;
  font-family: inherit !important;
}

/* ==========================================================================
   HEADER SECTION - CORREGIDO
   ========================================================================== */

.header-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 32px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-shrink: 0 !important;
}

.overview-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-family: var(--font-display) !important;
  color: white !important;
  line-height: 1.2 !important;
}

.overview-title i {
  color: var(--graphinia-primary) !important;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4)) !important;
}

/* ==========================================================================
   SUBSCRIPTION BADGE - CORREGIDO
   ========================================================================== */

.subscription-badge-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important; /* Mantener alineaciÃ³n a la derecha */
  gap: 8px !important;
  min-width: 180px !important;
}

.subscription-badge {
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  /* ASEGURAR ALINEACIÃ“N A LA DERECHA */
  align-self: flex-end !important;
  text-align: right !important;
}

.subscription-compact {
  display: flex !important; /* CAMBIO: de grid a flex */
  gap: 8px !important;
  justify-content: flex-end !important; /* CAMBIO: alinear a la derecha */
  width: 100% !important;
  flex-wrap: wrap !important; /* Permitir wrap en mÃ³viles */
}

.subscription-item-compact {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  padding: 6px 8px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  visibility: visible !important;
  /* ASEGURAR QUE SE MANTENGA A LA DERECHA */
  margin-left: auto !important;
}

.subscription-item-compact:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px) !important;
}

.subscription-item-compact i {
  font-size: 0.65rem !important;
  opacity: 0.8 !important;
}

/* Subscription Badge Colors */
.subscription-sin-plan,
.subscription-admin {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.3), rgba(107, 114, 128, 0.2)) !important;
  color: #D1D5DB !important;
  border: 1px solid rgba(107, 114, 128, 0.4) !important;
}

.subscription-plan-basico {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.2)) !important;
  color: #93C5FD !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

.subscription-plan-premium {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.2)) !important;
  color: #C4B5FD !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
}

.subscription-plan-empresarial {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.2)) !important;
  color: #FCD34D !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

.icon-btn {
  background: linear-gradient(135deg, var(--graphinia-primary) 0%, var(--graphinia-indigo) 100%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  flex-shrink: 0 !important;
}

.icon-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.5) !important;
  color: white !important;
  text-decoration: none !important;
}

/* ==========================================================================
   NO DATA MESSAGE
   ========================================================================== */

.no-data-message {
  text-align: center !important;
  padding: 60px 20px !important;
  background: rgba(26, 29, 35, 0.5) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin: 40px 0 !important;
}

.no-data-icon {
  font-size: 3rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 20px !important;
}

.no-data-message h3 {
  font-size: 1.5rem !important;
  color: var(--text-primary) !important;
  margin-bottom: 10px !important;
  font-family: var(--font-display) !important;
}

.no-data-message p {
  color: var(--text-muted) !important;
  font-size: 1rem !important;
  max-width: 500px !important;
  margin: 0 auto !important;
}

/* ==========================================================================
   SECTION TOGGLE - CORREGIDO
   ========================================================================== */

.section-toggle {
  position: relative !important;
  display: flex !important;
  background: rgba(10, 11, 13, 0.9) !important;
  border-radius: 8px !important;
  margin: 0 0 40px 0 !important;
  max-width: 320px !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  overflow: hidden !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 20px rgba(59, 130, 246, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(20px) !important;
}

.section-toggle::before {
  content: '';
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: calc(50% - 2px);
  background: linear-gradient(135deg, 
    var(--graphinia-primary) 0%, 
    var(--graphinia-indigo) 50%,
    var(--graphinia-primary) 100%) !important;
  border-radius: 6px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  left: 1px !important;
  box-shadow: 
    0 0 15px rgba(59, 130, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(99, 102, 241, 0.4) !important;
}

.section-toggle[data-active="analisis"]::before {
  left: calc(50% + 1px) !important;
}

.toggle-option {
  position: relative !important;
  z-index: 2 !important;
  flex: 1 !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.7rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  cursor: pointer !important;
  text-align: center !important;
  justify-content: center !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-family: 'Montserrat', sans-serif !important;
}

.toggle-option i {
  font-size: 0.8rem !important;
}

.section-toggle[data-active="tests"] .toggle-option[data-target="tests"],
.section-toggle[data-active="analisis"] .toggle-option[data-target="analisis"] {
  color: white !important;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.8) !important;
}

/* ==========================================================================
   CHARTS SECTIONS - CORREGIDO
   ========================================================================== */

.charts-section {
  margin-bottom: 40px !important;
}

.section-title {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  margin-bottom: 32px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--text-primary) !important;
  font-family: var(--font-display) !important;
}

.section-title i {
  color: var(--graphinia-primary) !important;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4)) !important;
}

.charts-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}

.charts-grid-tests {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 20px !important;
}

/* ==========================================================================
   CHART CARDS - YA ESTÃN BIEN
   ========================================================================== */

.chart-card {
  background: var(--bg-card) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  min-height: 280px !important;
  backdrop-filter: blur(20px) !important;
  position: relative !important;
  overflow: hidden !important;
}

.chart-card-large {
  grid-column: span 2 !important;
  min-height: 320px !important;
}

.radar-chart-card {
  min-height: 340px !important;
}

.chart-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--graphinia-primary), var(--graphinia-secondary)) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.chart-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
  border-color: rgba(59, 130, 246, 0.15) !important;
}

.chart-card:hover::before {
  opacity: 1 !important;
}

.chart-header {
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.chart-title {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin: 0 0 4px !important;
  font-family: var(--font-display) !important;
}

.chart-subtitle {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
}

.chart-container {
  height: 200px !important;
  position: relative !important;
}

.chart-container-large {
  height: 260px !important;
  position: relative !important;
}

.chart-container-radar {
  height: 280px !important;
  padding: 20px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* ==========================================================================
   CHART NO DATA
   ========================================================================== */

.chart-no-data {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  min-height: 160px !important;
  text-align: center !important;
  color: var(--text-muted) !important;
  background: rgba(26, 29, 35, 0.3) !important;
  border-radius: 8px !important;
  border: 1px dashed rgba(255, 255, 255, 0.1) !important;
  padding: 20px !important;
}

.chart-no-data i {
  font-size: 2.5rem !important;
  margin-bottom: 12px !important;
  color: rgba(79, 156, 249, 0.4) !important;
}

.chart-no-data p {
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  max-width: 250px !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN - MEJORADO
   ========================================================================== */

@media (max-width: 1200px) {
  .charts-grid-tests {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .chart-card-large {
    grid-column: span 2 !important;
  }
}

@media (max-width: 768px) {
  .modern-overview-container {
    padding: 20px !important;
    margin: 10px !important;
  }
  
  .header-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  
  .header-actions {
    align-self: flex-end !important;
    width: 100% !important;
    justify-content: space-between !important;
  }
  
  .subscription-badge-container {
    align-items: flex-start !important;
  }
  
  .overview-title {
    font-size: 1.5rem !important;
  }
  
  .section-title {
    font-size: 1.375rem !important;
  }
  
  .charts-grid,
  .charts-grid-tests {
    grid-template-columns: 1fr !important;
  }
  
  .chart-card-large {
    grid-column: span 1 !important;
  }
  
  .section-toggle {
    max-width: 100% !important;
  }
  
  .radar-chart-card {
    min-height: 280px !important;
  }
  
  .chart-container-radar {
    height: 220px !important;
    padding: 10px !important;
  }
}

@media (max-width: 480px) {
  .modern-overview-container {
    padding: 16px !important;
  }
  
  .overview-title {
    font-size: 1.25rem !important;
  }
  
  .toggle-option {
    padding: 10px 12px !important;
    font-size: 0.65rem !important;
  }
  
  .subscription-item-compact {
    font-size: 0.65rem !important;
  }
}

/* ==========================================================================
   WORDPRESS OVERRIDE - IMPORTANTE
   ========================================================================== */

/* Forzar estilos sobre cualquier tema de WordPress */
.modern-overview-container {
  all: initial !important;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-family) !important;
  max-width: 100% !important;
  padding: 32px !important;
  border-radius: 24px !important;
  box-shadow: var(--shadow-lg) !important;
  margin: 20px auto !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  min-height: 600px !important;
  display: block !important;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.overview-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  color: white;
}

/* ==========================================================================
   SUBSCRIPTION BADGE
   ========================================================================== */

.subscription-badge-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 160px;
}

.subscription-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.subscription-compact {
  display: flex !important; /* CAMBIO: de grid a flex */
  gap: 8px !important;
  justify-content: flex-end !important; /* CAMBIO: alinear a la derecha */
  width: 100% !important;
  flex-wrap: wrap !important; /* Permitir wrap en mÃ³viles */
}

.subscription-item-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-numbers);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.subscription-item-compact:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.subscription-item-compact i {
  font-size: 0.65rem;
  opacity: 0.8;
}

/* Subscription Badge Colors */
.subscription-sin-plan {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.3), rgba(107, 114, 128, 0.2));
  color: #D1D5DB;
  border: 1px solid rgba(107, 114, 128, 0.4);
}

.subscription-plan-basico {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.2));
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.subscription-plan-premium {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.2));
  color: #C4B5FD;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.subscription-plan-empresarial {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.2));
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.subscription-admin {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.2));
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.icon-btn {
  background: linear-gradient(135deg, var(--graphinia-primary) 0%, var(--graphinia-indigo) 100%);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.2);
  flex-shrink: 0;
}

.icon-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
  color: white;
  text-decoration: none;
}

/* ==========================================================================
   NO DATA MESSAGE
   ========================================================================== */

.no-data-message {
  text-align: center;
  padding: 60px 20px;
  background: rgba(26, 29, 35, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 40px 0;
}

.no-data-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.no-data-message h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.no-data-message p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ==========================================================================
   SECTION TOGGLE
   ========================================================================== */

.section-toggle {
  position: relative;
  display: flex;
  background: rgba(10, 11, 13, 0.9);
  border-radius: 8px;
  margin: 0 0 40px 0;
  max-width: 320px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  overflow: hidden;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 20px rgba(59, 130, 246, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  position: relative;
}

.section-toggle::before {
  content: '';
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: calc(50% - 2px);
  background: linear-gradient(135deg, 
    var(--graphinia-primary) 0%, 
    var(--graphinia-indigo) 50%,
    var(--graphinia-primary) 100%);
  border-radius: 6px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  left: 1px;
  box-shadow: 
    0 0 15px rgba(59, 130, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.section-toggle[data-active="analisis"]::before {
  left: calc(50% + 1px);
}

.toggle-option {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  text-align: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Montserrat', sans-serif;
}

.toggle-option i {
  font-size: 0.7rem;
}

.section-toggle[data-active="tests"] .toggle-option[data-target="tests"],
.section-toggle[data-active="analisis"] .toggle-option[data-target="analisis"] {
  color: white;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}

/* ==========================================================================
   CHARTS SECTIONS
   ========================================================================== */

.charts-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.section-title i {
  color: var(--graphinia-primary);
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.charts-grid-tests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* ==========================================================================
   CHART CARDS
   ========================================================================== */

.chart-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 260px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.chart-card-large {
  grid-column: span 2;
  min-height: 320px;
}

.radar-chart-card {
  min-height: 320px !important;
}

.chart-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--graphinia-primary), var(--graphinia-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chart-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.15);
}

.chart-card:hover::before {
  opacity: 1;
}

.chart-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px;
}

.chart-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
}

.chart-container {
  height: 180px;
  position: relative;
}

.chart-container-large {
  height: 240px;
  position: relative;
}

.chart-container-radar {
  height: 260px !important;
  padding: 20px !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   CHART NO DATA
   ========================================================================== */

.chart-no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 160px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(26, 29, 35, 0.3);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 20px;
}

.chart-no-data i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: rgba(79, 156, 249, 0.4);
}

.chart-no-data p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  max-width: 250px;
}

/* ==========================================================================
   STATS CARDS
   ========================================================================== */

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  width: 100%;
}

.stats-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  min-height: 110px;
  height: 110px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
  pointer-events: none;
}

.stats-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--graphinia-primary), var(--graphinia-secondary));
  transition: opacity 0.3s ease;
  opacity: 0;
}

.card-primary::after {
  background: linear-gradient(90deg, var(--graphinia-primary), var(--graphinia-indigo));
}

.card-success::after {
  background: linear-gradient(90deg, var(--graphinia-secondary), var(--graphinia-teal));
}

.card-warning::after {
  background: linear-gradient(90deg, var(--graphinia-tertiary), #D97706);
}

.card-info::after {
  background: linear-gradient(90deg, var(--graphinia-cyan), var(--graphinia-teal));
}

.card-primary {
  background: linear-gradient(135deg, rgb(59 130 246 / 48%) 0%, rgb(99 102 241 / 27%) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.card-success {
  background: linear-gradient(135deg, rgb(16 185 129 / 52%) 0%, rgb(20 184 166 / 28%) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.card-warning {
  background: linear-gradient(135deg, rgb(245 158 11 / 56%) 0%, rgb(217 119 6 / 32%) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.card-info {
  background: linear-gradient(135deg, rgb(6 182 212 / 46%) 0%, rgb(20 184 166 / 33%) 100%);
  border: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
}

.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.stats-card:hover::after {
  opacity: 1;
}

.card-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 8px;
  font-size: 1.1rem;
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
  transition: all 0.3s ease;
}

.stats-card:hover .card-icon {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.card-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 60px;
}

.card-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 6px 0;
  font-weight: 600;
  letter-spacing: 0.8px;
  font-family: var(--font-family);
}

.card-value {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 4px 0 6px 0;
  line-height: 1;
  font-family: var(--font-numbers);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-subtitle {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  font-weight: 400;
}

.card-progress {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-top: auto;
}

.card-progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  position: relative;
}

.card-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

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

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

.slide-up {
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
  from { 
    opacity: 0; 
    transform: scale(0.9); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

.scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   DEBUG STYLES
   ========================================================================== */

.debug-info {
  background: #333 !important;
  color: #fff !important;
  padding: 15px !important;
  margin: 20px 0 !important;
  border-radius: 5px !important;
  font-family: monospace !important;
  font-size: 12px !important;
  border: 1px solid #555;
}

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

/* Large screens */
@media (max-width: 1200px) {
  .stats-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .charts-grid-tests {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .chart-card-large {
    grid-column: span 2;
  }
}

/* Medium screens */
@media (max-width: 900px) {
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .charts-grid,
  .charts-grid-tests {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .chart-card-large {
    grid-column: span 1;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .modern-overview-container {
    padding: 20px;
  }
  
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .header-actions {
    align-self: flex-end;
    width: 100%;
    justify-content: space-between;
  }
  
  .subscription-badge-container {
    align-items: flex-start;
  }
  
  .stats-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stats-card {
    min-height: 100px;
    height: 100px;
    padding: 16px;
  }
  
  .card-value {
    font-size: 1.8rem;
  }
  
  .section-toggle {
    max-width: 100%;
  }
  
  .radar-chart-card {
    min-height: 280px !important;
  }
  
  .chart-container-radar {
    height: 220px !important;
    padding: 10px !important;
  }
  
  .chart-no-data {
    min-height: 140px;
    padding: 15px;
  }
  
  .chart-no-data i {
    font-size: 2rem;
  }
  
  .chart-no-data p {
    font-size: 0.8rem;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  .modern-overview-container {
    padding: 16px;
  }
  
  .overview-title {
    font-size: 1.375rem;
  }
  
  .stats-card {
    padding: 14px;
    min-height: 90px;
    height: 90px;
  }
  
  .card-content {
    padding-right: 45px;
  }
  
  .card-icon {
    padding: 8px;
    top: 12px;
    right: 12px;
  }
  
  .toggle-option {
    padding: 8px 10px;
    font-size: 0.65rem;
  }
  
  .subscription-item-compact {
    font-size: 0.65rem;
  }
}

/* Extra small devices */
@media (max-width: 350px) {
  .modern-overview-container {
    padding: 12px;
  }
  
  .overview-title {
    font-size: 1.25rem;
    gap: 8px;
  }
  
  .stats-card {
    padding: 12px;
    min-height: 85px;
    height: 85px;
  }
  
  .card-value {
    font-size: 1.6rem;
  }
  
  .chart-title {
    font-size: 0.8rem;
  }
  
  .chart-subtitle {
    font-size: 0.6rem;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .modern-overview-container {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    padding: 20px !important;
  }
  
  .header-bar {
    border-bottom: 2px solid #333 !important;
    margin-bottom: 20px !important;
  }
  
  .overview-title {
    color: black !important;
    font-size: 1.5rem !important;
  }
  
  .subscription-badge,
  .icon-btn {
    display: none !important;
  }
  
  .chart-card {
    background: white !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 20px !important;
  }
  
  .chart-title {
    color: black !important;
  }
  
  .chart-subtitle {
    color: #666 !important;
  }
  
  .section-toggle {
    display: none !important;
  }
  
  .charts-section {
    display: block !important;
  }
  
  .no-data-message {
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    color: black !important;
  }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* High contrast mode */
@media (prefers-contrast: high) {
  .modern-overview-container {
    border: 2px solid white;
  }
  
  .chart-card {
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  .chart-title,
  .overview-title {
    color: white;
    text-shadow: 1px 1px 0 black;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .card-progress-fill::after {
    animation: none;
  }
  
  .stats-card:hover {
    transform: none;
  }
  
  .chart-card:hover {
    transform: none;
  }
}

/* Focus styles for accessibility */
.toggle-option:focus,
.icon-btn:focus {
  outline: 2px solid var(--graphinia-primary);
  outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Spacing utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-5 { margin-top: 1.25rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 0.75rem !important; }
.pt-4 { padding-top: 1rem !important; }
.pt-5 { padding-top: 1.25rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 0.75rem !important; }
.pb-4 { padding-bottom: 1rem !important; }
.pb-5 { padding-bottom: 1.25rem !important; }

/* Text utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }

.font-weight-light { font-weight: 300 !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-medium { font-weight: 500 !important; }
.font-weight-semibold { font-weight: 600 !important; }
.font-weight-bold { font-weight: 700 !important; }

/* Display utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flex utilities */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }

/* Border utilities */
.border { border: 1px solid rgba(255, 255, 255, 0.1) !important; }
.border-top { border-top: 1px solid rgba(255, 255, 255, 0.1) !important; }
.border-bottom { border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; }
.border-left { border-left: 1px solid rgba(255, 255, 255, 0.1) !important; }
.border-right { border-right: 1px solid rgba(255, 255, 255, 0.1) !important; }

.rounded { border-radius: 0.375rem !important; }
.rounded-sm { border-radius: 0.25rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

/* Position utilities */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-scroll { overflow: scroll !important; }

/* Width and height utilities */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }

.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }

/* ==========================================================================
   DARK MODE OVERRIDES
   ========================================================================== */

/* En caso de que el tema tenga modo claro, forzar modo oscuro para el overview */
.modern-overview-container,
.modern-overview-container * {
  color-scheme: dark;
}

.modern-overview-container .chart-card {
  background: #1e283d !important;
  color: var(--text-primary) !important;
}

.modern-overview-container .chart-title {
  color: var(--text-primary) !important;
}

.modern-overview-container .chart-subtitle {
  color: var(--text-muted) !important;
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */

.overview-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 00px;
  color: var(--text-muted);
}

.overview-loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-top: 3px solid var(--graphinia-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 12px;
}

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

/* ==========================================================================
   ERROR STATES
   ========================================================================== */

.overview-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  color: #FCA5A5;
}

.overview-error i {
  color: var(--graphinia-quaternary);
  margin-right: 8px;
}

/* ==========================================================================
   SUCCESS STATES
   ========================================================================== */

.overview-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  color: #A7F3D0;
}

.overview-success i {
  color: var(--graphinia-secondary);
  margin-right: 8px;
}

/* ==== Ajuste de altura para el bloque FIFA Cards en overview ==== */
#overview-fifa-cards .chart-container-large {
  height: 620px !important;  /* suficiente para que la card quepa completa */
  overflow: visible !important;
  padding: 10px !important;
  
}

@media (max-width: 768px) {
  #overview-fifa-cards .chart-container-large {
    height: 460px !important;
  }
}
@media (max-width: 480px) {
  #overview-fifa-cards .chart-container-large {
    height: 420px !important;
  }
}