/*
 * Pool Helper Analytics - Design System
 * CSS Custom Properties for consistent theming and components
 */

/* ============================================
   COLOR TOKENS
   ============================================ */

:root {
  /* Dark theme colors (default) */
  --color-bg-primary: #0f1419;
  --color-bg-secondary: #1a1a2e;
  --color-bg-tertiary: #16213e;

  --color-text-primary: #e0e0e0;
  --color-text-secondary: #a8a8a8;
  --color-text-tertiary: #6b7280;

  --color-border-primary: #374151;
  --color-border-secondary: #4b5563;

  --color-primary: #a81d84;
  --color-primary-hover: #8a1669;

  /* Health score colors */
  --color-health-excellent-start: #10b981;
  --color-health-excellent-end: #059669;
  --color-health-good-start: #3b82f6;
  --color-health-good-end: #2563eb;
  --color-health-fair-start: #ffc107;
  --color-health-fair-end: #ff8c00;
  --color-health-poor-start: #fd7e14;
  --color-health-poor-end: #dc3545;
  --color-health-critical-start: #dc3545;
  --color-health-critical-end: #c82333;

  /* Grade colors */
  --color-grade-a-plus: #10b981;
  --color-grade-a: #34d399;
  --color-grade-b: #60a5fa;
  --color-grade-c: #fbbf24;
  --color-grade-d: #fb923c;
  --color-grade-f: #f87171;

  /* Risk colors */
  --color-risk-low: #10b981;
  --color-risk-medium: #f59e0b;
  --color-risk-high: #ef4444;
  --color-risk-critical: #dc2626;

  /* Semantic colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Commission colors - brighter for dark theme visibility */
  --color-commission-excellent: #34d399;
  --color-commission-good: #60a5fa;
  --color-commission-fair: #fbbf24;
  --color-commission-poor: #fb923c;
  --color-commission-critical: #f87171;

  /* Slot position colors - brighter for dark theme */
  --color-slot-top: #34d399;
  --color-slot-good: #60a5fa;
  --color-slot-fair: #fbbf24;
  --color-slot-normal: var(--color-text-secondary);

  /* Nominator count colors - brighter for dark theme */
  --color-noms-excellent: #34d399;
  --color-noms-good: #60a5fa;
  --color-noms-fair: #fbbf24;
  --color-noms-poor: #fb923c;
  --color-noms-critical: #f87171;
}

html.light-mode {
  /* Light theme color overrides */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-bg-tertiary: #f3f4f6;

  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
  --color-text-tertiary: #9ca3af;

  --color-border-primary: #e5e7eb;
  --color-border-secondary: #d1d5db;

  --color-primary: #3b1342;
  --color-primary-hover: #2d0f32;

  /* Darker colors for light theme visibility */
  --color-commission-excellent: #10b981;
  --color-commission-good: #3b82f6;
  --color-commission-fair: #ffc107;
  --color-commission-poor: #ff8c00;
  --color-commission-critical: #ef4444;

  --color-slot-top: #10b981;
  --color-slot-good: #3b82f6;
  --color-slot-fair: #ffc107;

  --color-noms-excellent: #10b981;
  --color-noms-good: #3b82f6;
  --color-noms-fair: #ffc107;
  --color-noms-poor: #ff8c00;
  --color-noms-critical: #ef4444;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

:root {
  /* Font families */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;

  /* Font sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */

  /* Line heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  /* Font weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* ============================================
   SPACING SYSTEM
   ============================================ */

:root {
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
}

/* ============================================
   BORDER RADIUS
   ============================================ */

:root {
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-full: 9999px;
}

/* ============================================
   SHADOWS
   ============================================ */

:root {
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
}

/* ============================================
   TRANSITIONS
   ============================================ */

:root {
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   BASE STYLES
   ============================================ */

html,
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary) !important;
  background-color: var(--color-bg-primary) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Apply dark mode to main content areas - MORE AGGRESSIVE */
[data-theme="dark"] html,
[data-theme="dark"] body,
[data-theme="dark"] .main,
[data-theme="dark"] .container,
[data-theme="dark"] .blog-post,
[data-theme="dark"] .section-text,
[data-theme="dark"] article,
[data-theme="dark"] .hestia-blogs,
[data-theme="dark"] #primary {
  background-color: var(--color-bg-primary) !important;
  color: var(--color-text-primary) !important;
}

/* Force dark text in dark mode */
[data-theme="dark"] p,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] label {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .filter-container {
  background: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .filter-select,
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="text"] {
  background: var(--color-bg-tertiary) !important;
  color: var(--color-text-primary) !important;
  border-color: var(--color-border-primary) !important;
}

[data-theme="dark"] .dataTable,
[data-theme="dark"] .dataTable thead th,
[data-theme="dark"] .dataTable tbody td {
  background-color: var(--color-bg-primary) !important;
  color: var(--color-text-primary) !important;
  border-color: var(--color-border-primary) !important;
}

[data-theme="dark"] .dataTable tbody tr:hover {
  background-color: var(--color-bg-secondary) !important;
}

/* ============================================
   COMPONENT: Health Score Badge
   ============================================ */

.health-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: white;
  transition: all var(--transition-base);
}

.health-badge--excellent {
  background: linear-gradient(135deg, var(--color-health-excellent-start) 0%, var(--color-health-excellent-end) 100%);
}

.health-badge--good {
  background: linear-gradient(135deg, var(--color-health-good-start) 0%, var(--color-health-good-end) 100%);
}

.health-badge--fair {
  background: linear-gradient(135deg, var(--color-health-fair-start) 0%, var(--color-health-fair-end) 100%);
}

.health-badge--poor {
  background: linear-gradient(135deg, var(--color-health-poor-start) 0%, var(--color-health-poor-end) 100%);
}

.health-badge--critical {
  background: linear-gradient(135deg, var(--color-health-critical-start) 0%, var(--color-health-critical-end) 100%);
}

.health-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   COMPONENT: Validator Name Cell (Health-Coded)
   ============================================ */

.validator-name-cell {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  font-weight: var(--font-weight-medium);
}

.validator-name-cell a {
  color: white !important;
  text-decoration: none;
}

.validator-name-cell a:hover {
  text-decoration: underline;
}

.validator-name-cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.health-indicator {
  opacity: 0.9;
  font-size: var(--font-size-sm);
  margin-left: var(--space-2);
  cursor: help;
}

/* ============================================
   COMPONENT: Grade Badge
   ============================================ */

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: white;
}

.grade-badge--a-plus { background-color: var(--color-grade-a-plus); }
.grade-badge--a { background-color: var(--color-grade-a); }
.grade-badge--b { background-color: var(--color-grade-b); }
.grade-badge--c { background-color: var(--color-grade-c); }
.grade-badge--d { background-color: var(--color-grade-d); }
.grade-badge--f { background-color: var(--color-grade-f); }

/* ============================================
   COMPONENT: Risk Badge
   ============================================ */

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: white;
}

.risk-badge--low { background-color: var(--color-risk-low); }
.risk-badge--medium { background-color: var(--color-risk-medium); }
.risk-badge--high { background-color: var(--color-risk-high); }
.risk-badge--critical { background-color: var(--color-risk-critical); }

/* ============================================
   COMPONENT: Filter Chips
   ============================================ */

.filter-panel {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.filter-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-lg);
  margin-top: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.filter-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex: 1;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-brand-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
  background: #4f8ff7;
}

.filter-chip button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 var(--space-1);
  line-height: 1;
  border-radius: var(--radius-sm);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.filter-chip button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.clear-all-filters {
  padding: var(--space-2) var(--space-4);
  background: var(--color-error);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.clear-all-filters:hover {
  background: var(--color-risk-critical);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Dark mode adjustments for active filters */
[data-theme="dark"] .active-filters {
  background: rgba(30, 41, 59, 0.5);
  border-color: var(--color-border-primary);
}

[data-theme="dark"] .filter-chip {
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .filter-chip:hover {
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

/* ============================================
   COMPONENT: Data Table Enhancements
   ============================================ */

.dataTables_wrapper {
  font-family: var(--font-family-base);
}

.dataTable thead th {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
  border-bottom: 2px solid var(--color-border-primary);
}

.dataTable tbody tr {
  transition: background-color var(--transition-fast);
}

.dataTable tbody tr:hover {
  background-color: var(--color-bg-tertiary);
}

.dataTable th abbr {
  border-bottom: 1px dotted var(--color-border-secondary);
  cursor: help;
  text-decoration: none;
}

/* Table cell color coding - hardcoded colors for maximum compatibility */
table td.commission-excellent,
table.dataTable td.commission-excellent { color: #34d399 !important; font-weight: 600 !important; }
table td.commission-good,
table.dataTable td.commission-good { color: #60a5fa !important; font-weight: 500 !important; }
table td.commission-fair,
table.dataTable td.commission-fair { color: #fbbf24 !important; font-weight: 500 !important; }
table td.commission-poor,
table.dataTable td.commission-poor { color: #fb923c !important; font-weight: 600 !important; }
table td.commission-critical,
table.dataTable td.commission-critical { color: #f87171 !important; font-weight: 700 !important; }

/* Slot coloring: Green (safe), Yellow (danger zone), Red (inactive) */
table tbody td.slot-safe,
table.dataTable tbody td.slot-safe,
#validatorsTable td.slot-safe { color: #34d399 !important; font-weight: 500 !important; }
table tbody td.slot-danger,
table.dataTable tbody td.slot-danger,
#validatorsTable td.slot-danger { color: #fbbf24 !important; font-weight: 600 !important; }
table tbody td.slot-inactive,
table.dataTable tbody td.slot-inactive,
#validatorsTable td.slot-inactive { color: #f87171 !important; font-weight: 600 !important; opacity: 0.7; }

/* Change indicators (Δ4wk, Δ%, ΔTotal) - Green for positive, Red for negative */
table tbody td.green,
table.dataTable tbody td.green,
#validatorsTable td.green { color: #34d399 !important; font-weight: 600 !important; }
table tbody td.red,
table.dataTable tbody td.red,
#validatorsTable td.red { color: #f87171 !important; font-weight: 600 !important; }

/* Grade coloring - Turboflakes grades */
table tbody td.grade-a\+,
table tbody td.grade-a,
table.dataTable tbody td.grade-a\+,
table.dataTable tbody td.grade-a,
#validatorsTable td.grade-a\+,
#validatorsTable td.grade-a { color: #34d399 !important; font-weight: 700 !important; }
table tbody td.grade-b,
table.dataTable tbody td.grade-b,
#validatorsTable td.grade-b { color: #60a5fa !important; font-weight: 600 !important; }
table tbody td.grade-c,
table.dataTable tbody td.grade-c,
#validatorsTable td.grade-c { color: #fbbf24 !important; font-weight: 500 !important; }
table tbody td.grade-d,
table.dataTable tbody td.grade-d,
#validatorsTable td.grade-d { color: #fb923c !important; font-weight: 600 !important; }
table tbody td.grade-f,
table.dataTable tbody td.grade-f,
#validatorsTable td.grade-f { color: #f87171 !important; font-weight: 700 !important; }
table tbody td.grade-n\/a,
table.dataTable tbody td.grade-n\/a,
#validatorsTable td.grade-n\/a { color: #a8a8a8 !important; font-style: italic; }

table td.noms-excellent,
table td.noms-excellent a,
table.dataTable td.noms-excellent,
table.dataTable td.noms-excellent a { color: #34d399 !important; font-weight: 600 !important; }
table td.noms-good,
table td.noms-good a,
table.dataTable td.noms-good,
table.dataTable td.noms-good a { color: #60a5fa !important; font-weight: 500 !important; }
table td.noms-fair,
table td.noms-fair a,
table.dataTable td.noms-fair,
table.dataTable td.noms-fair a { color: #fbbf24 !important; }
table td.noms-poor,
table td.noms-poor a,
table.dataTable td.noms-poor,
table.dataTable td.noms-poor a { color: #fb923c !important; font-weight: 500 !important; }
table td.noms-critical,
table td.noms-critical a,
table.dataTable td.noms-critical,
table.dataTable td.noms-critical a { color: #f87171 !important; font-weight: 600 !important; }

/* ============================================
   COMPONENT: Metric Cards
   ============================================ */

.metric-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
  cursor: pointer;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.metric-card__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.metric-card__value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.metric-card__change {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.metric-card__change--positive {
  color: var(--color-success);
}

.metric-card__change--negative {
  color: var(--color-error);
}

/* ============================================
   COMPONENT: Skeleton Loader
   ============================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-tertiary) 25%,
    var(--color-bg-secondary) 50%,
    var(--color-bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: var(--space-2);
}

.skeleton-card {
  height: 200px;
}

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

/* Tablet breakpoint */
@media (max-width: 768px) {
  .filter-controls {
    grid-template-columns: 1fr;
  }

  .active-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .dataTable {
    font-size: var(--font-size-sm);
  }

  /* Adjust validator name cell on tablets */
  .validator-name-cell {
    padding: var(--space-2) var(--space-3) !important;
    font-size: var(--font-size-sm);
  }

  .health-indicator {
    font-size: var(--font-size-xs) !important;
  }

  /* Stack filter chips more compactly */
  .filter-chips {
    gap: var(--space-1);
  }

  .filter-chip {
    font-size: var(--font-size-xs);
    padding: var(--space-1) var(--space-2);
  }

  /* Reduce table padding */
  .dataTable td,
  .dataTable th {
    padding: var(--space-2) !important;
  }
}

/* ==================== Validator Name Cell (Health Indicator) ==================== */
.validator-name-cell {
  position: relative;
  transition: all 0.2s ease;
}

.validator-name-cell:hover {
  background-color: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="dark"] .validator-name-cell:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Health Score Legend Dark Mode */
[data-theme="dark"] .filter-container > div[style*="background: white"] {
  background: var(--color-bg-tertiary) !important;
}

[data-theme="dark"] .filter-container strong {
  color: var(--color-text-primary) !important;
}

.validator-name-cell .health-indicator {
  font-weight: bold;
  vertical-align: middle;
}

/* ==================== Navigation Links ==================== */
.page-navigation .nav-link:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
}

/* Fix WordPress "More" button styling - AGGRESSIVE OVERRIDES */
ul.navbar-nav li#menu-item-32.btn.btn-primary.hestia-mega-menu {
  padding: 8px 18px !important;
  min-width: 60px !important;
  max-width: 80px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  margin: 0 8px !important;
  vertical-align: middle !important;
}

ul.navbar-nav li#menu-item-32.btn.btn-primary.hestia-mega-menu a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  font-size: 13px !important;
  text-align: center !important;
  width: 100% !important;
  height: 100% !important;
}

/* Mobile breakpoint */
@media (max-width: 576px) {
  .metric-card__value {
    font-size: var(--font-size-2xl);
  }

  .filter-panel {
    padding: var(--space-3);
  }

  /* Make validator name cell even more compact on mobile */
  .validator-name-cell {
    padding: var(--space-1) var(--space-2) !important;
    font-size: var(--font-size-xs);
    border-radius: var(--radius-sm);
  }

  .validator-name-cell a {
    font-size: var(--font-size-xs);
  }

  .health-indicator {
    display: none; /* Hide heart icon on very small screens */
  }

  /* Make filter controls full width */
  .filter-group {
    width: 100%;
  }

  .filter-group label {
    font-size: var(--font-size-xs);
  }

  .filter-group select,
  .filter-group input {
    font-size: var(--font-size-sm);
    padding: var(--space-2);
  }

  /* Adjust DataTable for mobile */
  .dataTable {
    font-size: var(--font-size-xs);
  }

  .dataTable td,
  .dataTable th {
    padding: var(--space-1) !important;
  }

  /* Make grade badges smaller */
  .grade-badge {
    min-width: 2rem;
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-xs);
  }

  /* Theme toggle button */
  #theme-toggle {
    padding: 6px 10px !important;
    font-size: 18px !important;
  }

  /* Reduce spacing in table notes */
  #notes {
    font-size: var(--font-size-sm);
    padding: var(--space-2);
  }

  #notes ul {
    padding-left: var(--space-4);
  }
}

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

.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-info { color: var(--color-info); }

.bg-success { background-color: var(--color-success); }
.bg-warning { background-color: var(--color-warning); }
.bg-error { background-color: var(--color-error); }
.bg-info { background-color: var(--color-info); }

.font-mono { font-family: var(--font-family-mono); }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
