/* ===================================
   NEAR Validator Stake Tracker
   Main Stylesheet
   =================================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables */
:root {
  --primary-teal: #80E9E5;
  --primary-teal-dark: #52DCD4;
  --bg-black: #181e2b;
  --bg-card: #18191E;
  --bg-card-hover: #1E1F24;
  --bg-sidebar: #1b1d2a;
  --bg-navbar: #1B1F2A;
  --text-white: #FFFFFF;
  --text-gray: #BEBDBE;
  --text-muted: #808080;
  --status-active: #00EC97;
  --status-inactive: #6B7280;
  --status-error: #EF4444;
  --status-warning: #F59E0B;
}

/* Body */
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-black);
  color: var(--text-white);
  line-height: 1.6;
}

/* ===================================
   NAVBAR
   =================================== */

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(27, 31, 42, 0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(128, 233, 229, 0.1);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.navbar-brand-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-white);
}

.navbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.navbar-brand i {
  color: var(--primary-teal);
}

.navbar-subtitle {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.2rem;
}

.navbar-subtitle a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-subtitle a:hover {
  color: var(--primary-teal);
}

.navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-links a i {
  font-size: 0.875rem;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--primary-teal);
}

.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-teal), var(--primary-teal-dark));
}

/* ===================================
   LAYOUT
   =================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* Page Header */
.page-header {
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-gray);
  font-size: 1rem;
}

/* Section */
.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--primary-teal);
}

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

.card {
  background-color: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease-in-out;
  border: 1px solid rgba(128, 233, 229, 0.1);
}

.card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(128, 233, 229, 0.2);
  transform: translateY(-2px);
}

/* ===================================
   STATS GRID
   =================================== */

.stats-grid {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: center; /* Center right column vertically */
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: 1fr;
    align-items: stretch; /* Reset for mobile */
  }
}

.stat-card {
  background-color: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(128, 233, 229, 0.1);
  transition: all 0.3s ease-in-out;
}

.stat-card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(128, 233, 229, 0.2);
}

.stat-card-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* tighter to reduce overall height */
}

/* Compact right column stats without affecting main left card */
.stat-card-group .stat-card {
  padding: 0.75rem 1rem;
}

.stat-card-group .stat-label {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.stat-card-group .stat-value {
  font-size: 1.2rem;
  line-height: 1.2;
}

.stat-card-group .stat-subtext {
  font-size: 0.65rem;
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 0.25rem;
}

.stat-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-subtext.positive {
  color: var(--status-active);
}

.stat-subtext.negative {
  color: var(--status-error);
}

/* Generic positive/negative classes for table cells and inline values
   Used by epoch/day tables to color staked change and percent change */
.positive,
td.positive {
  color: var(--status-active);
}

.negative,
td.negative {
  color: var(--status-error);
}

.stat-value.status-active {
  color: var(--status-active);
}

.stat-value.status-warning {
  color: var(--status-warning);
}

.stat-value.status-error {
  color: var(--status-error);
}

/* Staking Activity Card Styles */

.staking-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card-staking{
    overflow: hidden;
}
.staking-primary {
  padding-bottom: 0.75rem;
}

/* NEAR Catalog Trending Projects */

.nearcatalog-section {
  margin-top: 0.75rem;
  padding-top: 0;
}

.nearcatalog-header {
  color: var(--text-gray);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.nearcatalog-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  width: 100%;
  height: 90px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 233, 229, 0.3) rgba(128, 233, 229, 0.05);
}

.nearcatalog-marquee::-webkit-scrollbar {
  height: 6px;
}

.nearcatalog-marquee::-webkit-scrollbar-track {
  background: rgba(128, 233, 229, 0.05);
  border-radius: 10px;
}

.nearcatalog-marquee::-webkit-scrollbar-thumb {
  background: rgba(128, 233, 229, 0.3);
  border-radius: 10px;
}

.nearcatalog-marquee::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 233, 229, 0.5);
}

.nearcatalog-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  background: rgba(128, 233, 229, 0.05);
  border: 1px solid rgba(128, 233, 229, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.project-card:hover {
  background: rgba(128, 233, 229, 0.1);
  border-color: rgba(128, 233, 229, 0.3);
  transform: translateY(-2px);
}

.project-image {
  width: 48px;
  height: 48px;
  border-radius: 0.375rem;
  object-fit: cover;
  flex-shrink: 0;
}

.project-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.project-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.project-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

/* Telegram Bot Notification */
.telegram-bot {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(128, 233, 229, 0.03);
  border: 1px solid rgba(128, 233, 229, 0.08);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.4;
}

.telegram-bot i {
  color: var(--primary-teal);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.telegram-bot a {
  color: var(--primary-teal);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.telegram-bot a:hover {
  color: var(--primary-teal-dark);
  text-decoration: underline;
}

#unstaked-section {
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.staking-secondary {
  padding-top: 0;
  margin-bottom: 0;
}

.staking-ratio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  padding: 0.4rem 0.65rem;
  background-color: rgba(128, 233, 229, 0.05);
  border-radius: 0.5rem;
  flex-shrink: 0; /* keep badge tight on the right */
}

.staking-ratio .staking-label-small {
  margin-bottom: 0;
}

.staking-ratio .stat-value-small {
  margin-bottom: 0;
}

.staking-label {
  color: var(--text-gray);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.staking-label-small {
  color: var(--text-gray);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.stat-value-small {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.stat-subtext-small {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.stat-subtext-small.positive {
  color: var(--status-active);
}

.stat-subtext-small.negative {
  color: var(--status-error);
}

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

.chart-container {
  position: relative;
  width: 100%;
  height: 350px;
  margin-bottom: 2rem;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
  margin-bottom: 2rem;
}

.chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-wrapper:last-child {
  margin-bottom: 0;
}

/* ===================================
   TABLES
   =================================== */

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(128, 233, 229, 0.1);
}

thead {
  background-color: var(--bg-card-hover);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--primary-teal);
  border-bottom: 1px solid rgba(128, 233, 229, 0.1);
}

td {
  padding: 1rem;
  border-bottom: 1px solid rgba(128, 233, 229, 0.05);
}

tbody tr:hover {
  background-color: var(--bg-card-hover);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ===================================
   VALIDATORS PAGE SPECIFIC
   =================================== */

#performanceContainer h3{
    margin-bottom: 0.5zrem;
}
#chartContainer, #performanceContainer {
  margin-top: 2rem;
}

#chartContainer.show {
  display: block !important;
}

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

.search-box {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 2.5rem;
  font-size: 1rem;
  border: 2px solid var(--primary-teal);
  border-radius: 9999px;
  background-color: var(--bg-black);
  color: var(--text-white);
  outline: none;
  transition: all 0.3s ease-in-out;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--primary-teal-dark);
  box-shadow: 0 0 0 3px rgba(128, 233, 229, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-teal);
}

.clear-search-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}

.clear-search-btn:hover {
  background-color: rgba(128, 233, 229, 0.1);
  color: var(--primary-teal);
}

.clear-search-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Validator List */
#validatorList {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid rgba(128, 233, 229, 0.2);
  border-radius: 0.75rem;
  background-color: var(--bg-card);
  display: none;
}

#validatorList.show {
  display: block;
}

.validator-item {
  padding: 1rem;
  border-bottom: 1px solid rgba(128, 233, 229, 0.1);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease-in-out;
}

.validator-item:hover {
  background-color: var(--bg-card-hover);
  padding-left: 1.5rem;
}

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

.validator-name {
  font-weight: 600;
  color: var(--text-white);
}

.validator-stake {
  color: var(--primary-teal);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Selected Validator */
.selected-validator {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  display: none;
  border: 1px solid rgba(128, 233, 229, 0.2);
}

.selected-validator.show {
  display: block;
}

.selected-validator h3 {
  color: var(--primary-teal);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
  background: rgba(128, 233, 229, 0.1);
  border: 1px solid rgba(128, 233, 229, 0.2);
}

.status-badge.active {
  background: rgba(0, 236, 151, 0.1);
  border-color: rgba(0, 236, 151, 0.3);
  color: var(--status-active);
}

.status-badge.inactive {
  background: rgba(107, 114, 128, 0.1);
  border-color: rgba(107, 114, 128, 0.3);
  color: var(--status-inactive);
}

/* Layout: place meta left and stats right on wide screens */
.selected-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .selected-top {
    flex-direction: row;
    align-items: flex-start;
  }
  .selected-top .left-meta {
    flex: 1 1 50%;
    max-width: 60%;
  }
  .selected-top .right-stats {
    flex: 0 0 40%;
  }
}

/* Validator Stats Grid */
.validator-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

/* Desktop: Default stays 3 columns */
@media (min-width: 768px) {
  .validator-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Performance stats gets 4 columns */
  #performanceStats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  background-color: rgba(128, 233, 229, 0.05);
  padding: 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(128, 233, 229, 0.1);
}

/* Validator metadata (small compact block) */
.validator-meta {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.75rem;
}

.validator-meta-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(128,233,229,0.06);
  flex-shrink: 0;
}

.validator-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.validator-meta-item a { color: var(--primary-teal); text-decoration: none; }
.validator-meta-item a:hover { text-decoration: underline; }

.validator-meta-item {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.validator-meta-item i {
  color: var(--primary-teal);
  min-width: 18px;
}

/* Staking Options */
.staking-options {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(128, 233, 229, 0.1);
}

.staking-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.staking-wallets {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.wallet-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background-color: rgba(128, 233, 229, 0.05);
  border: 1px solid rgba(128, 233, 229, 0.2);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--text-white);
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 200px;
}

.wallet-link:hover {
  background-color: rgba(128, 233, 229, 0.1);
  border-color: var(--primary-teal);
  transform: translateY(-2px);
}

.wallet-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.wallet-link i {
  margin-left: auto;
  color: var(--primary-teal);
  font-size: 0.875rem;
}

/* Error & Loading States */
.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 1rem;
  border-radius: 0.75rem;
  color: #FCA5A5;
  margin-bottom: 1rem;
  display: none;
}

.error.show {
  display: block;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--primary-teal);
}

.no-data {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

/* Scrollbar Styling */
#validatorList::-webkit-scrollbar {
  width: 6px;
}

#validatorList::-webkit-scrollbar-track {
  background: rgba(128, 233, 229, 0.05);
  border-radius: 10px;
}

#validatorList::-webkit-scrollbar-thumb {
  background: rgba(128, 233, 229, 0.3);
  border-radius: 10px;
}

#validatorList::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 233, 229, 0.5);
}

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

@media (max-width: 768px) {

.navbar-links a{
  font-size:13px;
  padding-right:10px;
  font-weight: bold;
}
h4{
    font-size: 16px;    
}
.card{
    padding: 0.5rem;
}
  .navbar-links {
    gap: 1rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.875rem;
  }

  th, td {
    padding: 0.75rem;
  }

  .validator-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .chart-wrapper {
    height: 220px;
  }

  .chart-container {
    height: 220px;
  }

  /* Compact Selected Validator on Mobile */
  .selected-validator {
    padding: 0.875rem;
    margin-bottom: 1rem;
  }

  .selected-validator h3 {
    font-size: 0.95rem;
    margin-bottom: 0.625rem;
  }

  .stat-item {
    padding: 0.625rem;
  }

  .stat-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }
  /* Make right column cards even tighter on mobile */
  .stat-card-group {
    gap: 0.5rem;
  }

  .stat-card-group .stat-card {
    padding: 0.7rem 0.9rem;
  }

  .stat-card-group .stat-value {
    font-size: 1.1rem;
  }

  .stat-card-group .stat-subtext {
    font-size: 0.62rem;
  }

  .stat-subtext {
    font-size: 0.7rem;
  }

  /* Compact unstaked section on mobile */
  #unstaked-section {
    margin-top: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .staking-secondary {
    padding-top: 0;
    margin-bottom: 0;
  }

  .staking-label-small {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }

  .stat-value-small {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }

  .stat-subtext-small {
    font-size: 0.65rem;
    margin-top: 0.15rem;
  }

  .staking-ratio {
    gap: 0.4rem;
    margin-top: 0.25rem;
    padding: 0.35rem 0.5rem;
  }

  /* Mobile trending projects */
  .nearcatalog-section {
    margin-top: 0.5rem;
  }

  .nearcatalog-header {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .nearcatalog-marquee {
    height: 75px;
  }

  .nearcatalog-track {
    gap: 0.75rem;
  }

  .project-card {
    min-width: 260px;
    padding: 0.6rem;
    gap: 0.6rem;
  }

  .project-image {
    width: 44px;
    height: 44px;
  }

  .project-name {
    font-size: 0.8rem;
  }

  .project-tagline {
    font-size: 0.65rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  /* Telegram bot mobile */
  .telegram-bot {
    font-size: 0.7rem;
    padding: 0.5rem 0.65rem;
    margin-top: 0.65rem;
  }

  .telegram-bot i {
    font-size: 0.8rem;
  }

  /* Compact staking options on mobile */
  .staking-options {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .staking-header h4 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .staking-wallets {
    flex-direction: column;
    gap: 0.75rem;
  }

  .wallet-link {
    min-width: auto;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .wallet-logo {
    width: 20px;
    height: 20px;
  }

  /* Compact search section */
  .search-box {
    margin-bottom: 1rem;
  }

  .search-input {
    padding: 0.65rem 2.5rem 0.65rem 2rem;
    font-size: 0.9rem;
  }

  .search-icon {
    left: 0.75rem;
    font-size: 0.9rem;
  }

  .clear-search-btn {
    width: 1.75rem;
    height: 1.75rem;
    right: 0.5rem;
    font-size: 0.85rem;
  }

  /* Compact validator list */
  .validator-item {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .validator-item:hover {
    padding-left: 1rem;
  }

  .validator-stake {
    font-size: 0.8rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

/* ===================================
   FOOTER
   =================================== */

.footer-marquee {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--bg-navbar) 0%, var(--bg-card) 50%, var(--bg-navbar) 100%);
  border-top: 1px solid rgba(128, 233, 229, 0.2);
  padding: 0;
  z-index: 30;
  overflow: hidden;
  height: 40px;
  backdrop-filter: blur(8px);
}

.footer-link {
  display: block;
  text-decoration: none;
  color: var(--text-white);
  height: 100%;
  cursor: pointer;
}

.footer-link:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  padding: 0 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.marquee-content span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 3rem;
}

.support-text {
  color: var(--primary-teal);
}

.validator-name {
  color: var(--text-white);
  font-weight: 600;
}

.copyright-text {
  color: var(--text-gray);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

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

.footer-marquee:hover {
  background: linear-gradient(90deg, var(--bg-card-hover) 0%, var(--bg-navbar) 50%, var(--bg-card-hover) 100%);
  border-top-color: var(--primary-teal);
}

/* Add padding to body to prevent content from being hidden by footer */
body {
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-marquee {
    height: 36px;
  }
  
  .marquee-content {
    font-size: 0.75rem;
    animation-duration: 25s;
  }
  
  .marquee-content span {
    padding: 0 2rem;
  }
  
  body {
    padding-bottom: 36px;
  }
}

/* ==============================
   Light theme overrides
   Adds the .theme-light class to <html> to switch to a light palette
   ============================== */
.theme-light {
  --bg-black: #f7fafc; /* page background */
  --bg-card: #ffffff;
  --bg-card-hover: #f3f6f8;
  --bg-sidebar: #f2f4f7;
  --bg-navbar: #ffffff;
  --text-white: #0f172a; /* dark text on light bg */
  --text-gray: #374151;
  --text-muted: #6b7280;
  --primary-teal: #0ea5a4; /* keep teal but slightly darker for contrast */
  --primary-teal-dark: #059e99;
  --status-active: #038855;
  --status-inactive: #6B7280;
  --status-error: #dc2626;
  --status-warning: #b45309;

  /* update some element backgrounds that relied on rgba dark tints */
}

/* small adjustments for navbar translucency on light theme */
.theme-light nav {
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(6, 182, 171, 0.06);
}

.theme-light .card,
.theme-light table,
.theme-light .stat-item,
.theme-light .stat-card {
  background-color: var(--bg-card);
}

.theme-light body {
  background-color: var(--bg-black);
  color: var(--text-white);
}

#themeToggle{
  
}