/* Tooltip container */
.custom-tooltip {
    position: relative;
    display: inline-block;
}
/* Tag editor styling for both Project Settings and Seabed Web Trigger */
.tag-editor {
  position: relative;
  border: 1px solid #ddd;
  padding: 5px;
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #fff;
}
.tag-editor input[type="text"] {
  border: none;
  outline: none;
  flex: 1;
  min-width: 80px;
  margin: 2px;
}
.tag-editor .tag {
  background: #e2e6ea;
  color: #495057;
  border-radius: 3px;
  padding: 3px 8px;
  margin: 2px;
  display: flex;
  align-items: center;
}
.tag-editor .remove-tag {
  margin-left: 5px;
  cursor: pointer;
}
/* Suggestions dropdown */
.tag-suggestions {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}
.tag-suggestions div {
  padding: 5px 8px;
  cursor: pointer;
}
.tag-suggestions div:hover {
  background: #eee;
}
  
/* Tooltip text */
.custom-tooltip .custom-tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */
}

.custom-tooltip .custom-tooltiptext-bottom {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */
}

/* Show the tooltip text when you mouse over the tooltip container */
.custom-tooltip:hover .custom-tooltiptext {
    visibility: visible;
}

.custom-tooltip:hover .custom-tooltiptext-bottom {
    visibility: visible;
}