/* ===== Modern Minimal Tooltip System ===== */
/* Universal tooltip for both admin and frontend */

.bjl-tooltip {
  position: absolute;
  z-index: 99999999999999999999999;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25),
              0 4px 10px rgba(0, 0, 0, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  font-family: YekanBakh, 'Vazirmatn', Vazirmatn, sans-serif;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}

.bjl-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Disable tooltips on mobile and tablet (only show on desktop) */
@media (max-width: 1024px) {
  .bjl-tooltip {
    display: none !important;
  }
}

/* Tooltip arrow - DISABLED */
/* .bjl-tooltip::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
} */

/* RTL support */
html[dir="rtl"] .bjl-tooltip {
  direction: rtl;
  text-align: right;
}

/* Multi-line tooltip support */
.bjl-tooltip.is-multiline {
  white-space: normal;
  max-width: 280px;
  text-align: center;
}

html[dir="rtl"] .bjl-tooltip.is-multiline {
  text-align: right;
}

/* Disable browser default tooltips */
[data-bjl-tooltip] {
  position: relative;
}

/* Optional: Add subtle animation on hover */
.bjl-tooltip.is-visible {
  animation: bjl-tooltip-appear 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bjl-tooltip-appear {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Variant: Info tooltip (blue) */
.bjl-tooltip.variant-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Variant: Success tooltip (green) */
.bjl-tooltip.variant-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Variant: Warning tooltip (orange) */
.bjl-tooltip.variant-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Variant: Error tooltip (red) */
.bjl-tooltip.variant-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
