/* Reconcile bootstrap3 to typeahead.js (the real Typeahead, not bootstrap-typeahead) */
.twitter-typeahead {
  width: 100%;
}
.tt-menu {
  margin-top: 2px;
  padding: 5px 0;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.2);
  width:100%;
  max-height: 20em;
  overflow-y: auto;
}
.tt-empty-message,
.tt-suggestion {
  padding: 3px 20px;
}
.tt-suggestion.tt-cursor {
  color: #fff;
  background-color: #0081c2;
  background-image: linear-gradient(to bottom, #0088cc, #0077b3);
}
/* ---- */

/* =============================================================================
   MRM Plot Styles - Species Legend and Lines
   ============================================================================= */

/* Species legend styling */
.species-legend {
  font-family: sans-serif;
}

.species-legend .legend-item {
  transition: opacity 0.2s ease;
}

.species-legend .legend-item:hover {
  opacity: 0.8;
}

/* Prevent text selection on legend items */
.species-legend text {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Species lines - smooth transitions */
.species-line {
  transition: stroke-width 0.2s ease, opacity 0.2s ease;
}

/* Annotation area hover effect */
.annotation-area {
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.annotation-area:hover {
  opacity: 0.7 !important;
}

/* Peak labels */
.peak-label {
  font-family: sans-serif;
  font-size: 12px;
  fill: #333;
  pointer-events: none;
}

/* Integration line styling */
.integ-line-start,
.integ-line-end {
  stroke-dasharray: 5, 5;
  opacity: 0.7;
}

/* Tooltip styling (if not already defined) */
.tooltip {
  font-family: sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.tooltip a {
  text-decoration: underline;
}