/* Tooltip styling */

/* Help icons */
.help-icon {
    display: inline-block;
    font-size: 0.9em;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.help-icon:hover {
    opacity: 1;
}

/* Bootstrap tooltip customization */
.tooltip {
    --bs-tooltip-max-width: 300px;
    --bs-tooltip-bg: var(--bs-gray-600);
    --bs-tooltip-color: white;
    font-size: 0.85rem;
    font-weight: 400;
    z-index: 1080;
}

/* Make tooltip text more readable */
.tooltip-inner {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-left: 3px solid var(--bs-info);
}

/* For complex feature highlighting */
.feature-highlight {
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-info-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(var(--bs-info-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-info-rgb), 0);
    }
}

/* Make the contextual help button more noticeable */
#contextHelpBtn {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

#contextHelpBtn:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Enhanced tooltip content for premium features */
.premium-tooltip {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.premium-tooltip-header {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.premium-tooltip-body {
    margin-bottom: 0.25rem;
}

.premium-tooltip-footer {
    font-size: 0.8em;
    font-style: italic;
    opacity: 0.8;
}

/* Add a subtle hint for tooltips on hover */
[data-bs-toggle="tooltip"]:not(input):not(select):hover {
    border-bottom: 1px dotted var(--bs-gray-400);
}

/* Custom appearance for complex feature tooltips */
.tooltip.complex-feature .tooltip-inner {
    border-left: 3px solid var(--bs-info);
    padding-left: 0.75rem;
}

/* Feature discovery animation for new users */
.feature-discovery {
    position: relative;
}

.feature-discovery::after {
    content: 'New';
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--bs-warning);
    color: var(--bs-dark);
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0.15rem 0.35rem;
    border-radius: 1rem;
    z-index: 1000;
}