.ingredient {
    position: relative;

    &::before {
        position: absolute;
        top: -8px;
        right: -8px;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        z-index: 10;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

.ingredient-modified::before {
    content: "✎";
    background-color: #ffdd57;
    color: #363636;
    font-size: 14px;
}

.ingredient-new::before {
    content: "+";
    background-color: #48c78e;
    color: white;
    font-weight: bold;
}

.ingredient-removed {
    opacity: 0.6;

    &::before {
        content: "−";
        background-color: #f14668;
        color: white;
        font-weight: bold;
    }

    & .card {
        border: 2px dashed #f14668;
        overflow: hidden; /* Prevent image overflow */
    }
}

.ingredient-removed .flip-card-front,
.ingredient-removed .flip-card-back {
    filter: grayscale(50%);
}
