﻿.custom-tooltip {
    position: relative;
    display: inline-block; /* Added to make the tooltip work with the container */
    width: 40px;
    height: 40px;
}

.custom-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    background-color: #333;
    color: white;
    padding: 5px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    top: 100%; /* Change from 'bottom' to 'top' */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    margin-top: 5px; /* Change from 'margin-bottom' to 'margin-top' */
    z-index: 10;
}

.custom-tooltip:hover::before {
    opacity: 1;
}