/* Pure CSS Tooltips with JavaScript HTML support - Beautiful Design */

.ti-help {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: help;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle;
  flex-shrink: 0;

  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  min-height: 22px;
  padding: 0 !important;
  margin: 0 !important;

  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;

  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;

  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  z-index: 100;

  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.25),
              inset 0 1px 2px rgba(255, 255, 255, 0.3),
              0 0 0 3px transparent;

  box-sizing: border-box;
}


.ti-help::before {
  content: '?';
}

/* CSS tooltip disabled - using JavaScript tooltips only */
.ti-help::after {
  display: none !important;
}

.ti-help:hover,
.ti-help:focus {
  background: linear-gradient(135deg, #357abd 0%, #2a5fa8 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4),
              inset 0 1px 2px rgba(255, 255, 255, 0.3),
              0 0 0 3px rgba(74, 144, 226, 0.15);
  transform: scale(1.15);
}

.ti-help:active {
  transform: scale(0.95);
}

/* Dark theme */
html[data-theme="dark"] .ti-help {
  background: linear-gradient(135deg, #5a9deb 0%, #4a7fc4 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.35),
              inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .ti-help:hover,
html[data-theme="dark"] .ti-help:focus {
  background: linear-gradient(135deg, #4a7fc4 0%, #3a6fb4 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.45),
              inset 0 1px 2px rgba(255, 255, 255, 0.2),
              0 0 0 3px rgba(74, 144, 226, 0.2);
}


/* Mobile */
@media (max-width: 768px) {
  .ti-help {
    width: 24px;
    height: 24px;
    line-height: 24px;
    margin: 0 8px;
    font-size: 15px;
  }


  .ti-help:hover,
  .ti-help:focus {
    transform: scale(1.2);
  }

  .ti-help:active {
    transform: scale(1);
  }
}

/* Animation for appearance */
@keyframes tooltipAppear {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

