.tooltip-container {
  position: relative;
  display: inline-block;
  margin-top: 20px;

  .tooltip-trigger {
    cursor: pointer;
    border-bottom: 1px dashed #ccc;
  }

  .tooltip-content {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position the tooltip above the text */
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;

    &::after {
      content: "";
      position: absolute;
      top: 100%; /* At the bottom of the tooltip */
      left: 50%;
      margin-left: -5px;
      border-width: 5px;
      border-style: solid;
      border-color: #555 transparent transparent transparent;
    }
  }

  &:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
  }
}
