/* Style the icon */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #5F90AF;
    color: white;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    margin-left: -60px; /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
    width: auto; /* Allow the tooltip to expand based on content */
    /*max-width: 200px;  Optional: limit the maximum width */
    white-space: nowrap; /* Prevent the text from wrapping to the next line */
    word-wrap: break-word; /* Allow long words to break and not overflow */
}

/* Show the tooltip when hovered */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}