/* Tooltip styles for usernames */
.col-5 span[title] {
  position: relative;
  cursor: pointer;
}

.col-5 span[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 1000;
  margin-bottom: 5px;
}

.col-5 span[title]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

/* Top 3 positions tooltip styles */
.css-15a1lq3[title] {
  position: relative;
  cursor: pointer;
}

.css-15a1lq3[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
  animation: fadeIn 0.2s ease-in;
}

.css-15a1lq3[title]:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  pointer-events: none;
}

/* Ensure parent containers don't clip tooltips */
.css-hca0vm {
  overflow: visible !important;
}

.css-gqrafh, .css-oijls1, .css-jehefp {
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

/* Animation for smooth appearance */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}