﻿/* ===== SMART TOOLTIP SYSTEM ===== */



.tooltip-container {
    position: absolute;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    max-width: 280px;
}

    .tooltip-container.tooltip-visible {
        opacity: 1;
    }

.tooltip-content {
    background: #1f2937;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    word-wrap: break-word;
}

.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 6px solid transparent;
}

/* Arrow positioning for different tooltip positions */
.tooltip-container.tooltip-top .tooltip-arrow {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: #1f2937;
}

.tooltip-container.tooltip-bottom .tooltip-arrow {
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: #1f2937;
}

.tooltip-container.tooltip-left .tooltip-arrow {
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: #1f2937;
}

.tooltip-container.tooltip-right .tooltip-arrow {
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: #1f2937;
}

/* Mobile tooltip adjustments */
@media (max-width: 768px) {
    .tooltip-container {
        max-width: 250px;
        font-size: 13px;
    }

    .tooltip-content {
        padding: 10px 14px;
    }
}
/* Add these to your existing smart-tooltip.css */

/* Mobile-specific tooltip class */
.tooltip-mobile .tooltip-content {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Stronger shadow on mobile */
}

    /* Optional: "Tap to close" hint for mobile tooltips */
    .tooltip-mobile .tooltip-content::after {
        content: "\A\A(Tap anywhere to close)";
        white-space: pre;
        font-size: 12px;
        opacity: 0.7;
        font-style: italic;
        display: block;
        margin-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 8px;
    }

/* Touch-friendly disabled nav items */
.nav-item-disabled {
    touch-action: manipulation; /* Optimize for touch */
    user-select: none; /* Prevent text selection on touch */
    -webkit-user-select: none;
}

/* Touch device specific styles */
@media (hover: none) and (pointer: coarse) {
    .nav-item-disabled {
        cursor: pointer !important; /* Change cursor for touch devices */
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.1); /* iOS tap highlight */
        tap-highlight-color: rgba(59, 130, 246, 0.1);
    }

        .nav-item-disabled:active {
            background-color: rgba(59, 130, 246, 0.1) !important;
            transform: scale(0.98); /* Subtle press feedback */
            transition: all 0.1s ease;
        }
}

/* Enhanced mobile adjustments */
@media (max-width: 768px) {
    .tooltip-container {
        z-index: 10001; /* Higher z-index for mobile */
    }
}