/**
 * Lean Tooltip - CSS Styles
 * 
 * Reusable CSS for the Lean Tooltip framework.
 * This file contains all styles needed for the tooltip functionality.
 * 
 * @version 1.0.0
 * @author LeanPlugins
 * @website https://leanplugins.com
 * 
 * Required classes:
 *   - .lean-tooltip (trigger element)
 *   - .lean-tooltip-icon (icon element inside trigger)
 *   - .lean-tooltip-bubble (tooltip bubble element, created by JS)
 */

/* ===== Tooltip trigger icon ===== */
.lean-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  background: #e5e7eb;
  color: #111827;
  cursor: help;
  user-select: none;
}

/* ===== Tooltip bubble (FIXED) ===== */
.lean-tooltip-bubble {
  position: fixed;
  z-index: 9999;
  background: #111827;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Visible state */
.lean-tooltip-bubble.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* When width is set, allow wrapping */
.lean-tooltip-bubble.has-width {
  white-space: normal;
  word-wrap: break-word;
}

/* HTML content styling in tooltips */
.lean-tooltip-bubble b,
.lean-tooltip-bubble strong {
  font-weight: 700;
}

.lean-tooltip-bubble em,
.lean-tooltip-bubble i {
  font-style: italic;
}

.lean-tooltip-bubble u {
  text-decoration: underline;
}

.lean-tooltip-bubble code {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

/* Tooltip arrow */
.lean-tooltip-bubble::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
}

