.star-rating {
    display: flex;
    direction: rtl;
    font-size: 1.5rem;
}
.star-rating input {
    display: none;
}
.star-rating label {
    color: #ccc;
    cursor: pointer;
}
.star-rating input:checked ~ label {
    color: #ffc107;
}
.star-rating input:hover ~ label {
    cursor: default;
}
.tooltip {
    position: relative;
    display: inline-block;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: #fff;
    color: #000;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #ccc;
    position: absolute;
    z-index: 1;
    bottom: -10px; /* Position the tooltip above the text */
    left: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
    transition: opacity 0.3s;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: -5px; /* At the bottom of the tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}