/* Bootstrap Tooltip Clone - Matches CTFd's Bootstrap 5 tooltip exactly */

.certificate-tooltip {
  position: relative;
  display: inline-block;
}

.certificate-tooltip .tooltip-inner {
  visibility: hidden;
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  text-align: center;
  border-radius: 6px;
  padding: 4px 8px;
  position: absolute;
  z-index: 1080;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 200px;
  opacity: 0;
  transition: opacity 0.15s linear;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: nowrap;
}

/* Tooltip arrow */
.certificate-tooltip .tooltip-inner::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6.4px;
  width: 0;
  height: 0;
  border-left: 6.4px solid transparent;
  border-right: 6.4px solid transparent;
  border-top: 6.4px solid rgb(0, 0, 0);
}

/* Show tooltip on hover - matches Bootstrap's 0.9 opacity */
.certificate-tooltip:hover .tooltip-inner {
  visibility: visible;
  opacity: 0.9;
}

/* Fade animation - matches Bootstrap's fade effect */
@keyframes tooltipFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.9;
  }
}

.certificate-tooltip:hover .tooltip-inner {
  animation: tooltipFadeIn 0.15s linear;
}
