* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f1419;
  color: #e1e8ed;
  min-height: 100vh;
  padding: 2rem;
}

.dashboard {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.validators {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.validator-card {
  background: #1a2332;
  border: 1px solid #2a3a4a;
  border-radius: 12px;
  padding: 1.25rem;
}

.validator-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.stake {
  font-size: 0.875rem;
  color: #8899a6;
  margin-bottom: 1rem;
}

.score-badge-wrapper {
  position: relative;
  display: inline-block;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1d9bf0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: default;
  position: relative;
}

/* Tooltip styles */
.score-badge-wrapper .tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #253341;
  color: #e1e8ed;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #3a4a5a;
  white-space: normal;
  width: 220px;
  text-align: center;
  transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
  pointer-events: none;
  z-index: 10;
}

/* Tooltip arrow */
.score-badge-wrapper .tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #253341;
}

/* Show tooltip on hover */
.score-badge-wrapper:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
