/* CSS */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted #333;
  cursor: help;
}

/* The Tooltip Bubble */
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%; /* Places it above the text */
  left: 0;
  
  /* Styling */
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
  z-index: 999;
}

/* Show on hover */
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}
