/* ===============================
   Enhanced Tooltips System
   Professional Help Icons & Tooltips
   =============================== */

/* Help Icon (?) - Unified Orange Design */
.help-icon,
[id^="help-"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    background: rgba(230, 126, 34, 0.15) !important;
    color: #E67E22 !important;
    border: 1px solid rgba(230, 126, 34, 0.4) !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    margin-left: 6px !important;
    cursor: help !important;
    vertical-align: middle !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

[id^="help-"]:hover {
    transform: scale(1.1) !important;
    background: rgba(230, 126, 34, 0.25) !important;
    border-color: #E67E22 !important;
}

/* Tooltip Container - Professional Institutional Style */
.tooltip,
.bs-tooltip-auto,
.bs-tooltip-top,
.bs-tooltip-bottom,
.bs-tooltip-start,
.bs-tooltip-end,
.bs-tooltip-right,
.bs-tooltip-left {
    z-index: 10000 !important;
}

.tooltip-inner {
    max-width: 420px !important;
    min-width: 320px !important;
    padding: 0 !important;
    background-color: #0d1117 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 
                0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    text-align: left !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    overflow: hidden !important;
}

/* Tooltip Arrow */
.tooltip .tooltip-arrow::before,
.bs-tooltip-auto .tooltip-arrow::before,
.bs-tooltip-right .tooltip-arrow::before,
.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #30363d !important;
}

.bs-tooltip-left .tooltip-arrow::before,
.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #30363d !important;
}

.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #30363d !important;
}

.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #30363d !important;
}

/* Tooltip Content Wrapper */
.tooltip-inner > div {
    padding: 16px 20px !important;
}

/* Section Headers in Tooltip - All Orange */
.tooltip-inner span[style*="fontWeight: bold"],
.tooltip-inner span[style*="font-weight: bold"],
.tooltip-inner b,
.tooltip-inner strong {
    color: #E67E22 !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    display: block !important;
    margin-bottom: 3px !important;
}

/* Section Content - All Orange border */
.tooltip-inner > div > div {
    background-color: rgba(230, 126, 34, 0.03) !important;
    border-radius: 4px !important;
    padding: 10px 12px !important;
    margin-bottom: 6px !important;
    border-left: 2px solid rgba(230, 126, 34, 0.4) !important;
    transition: all 0.15s ease !important;
}

.tooltip-inner > div > div:last-child {
    margin-bottom: 0 !important;
}

/* All sections use same orange accent */
.tooltip-inner > div > div:nth-child(1),
.tooltip-inner > div > div:nth-child(3),
.tooltip-inner > div > div:nth-child(5) {
    border-left-color: rgba(230, 126, 34, 0.5) !important;
    background-color: rgba(230, 126, 34, 0.03) !important;
}

/* Remove br elements spacing */
.tooltip-inner br {
    display: none !important;
}

/* Tooltip text content */
.tooltip-inner span:not([style*="fontWeight"]):not([style*="font-weight"]) {
    color: #c9d1d9 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

/* Fade animation */
.tooltip.fade {
    transition: opacity 0.2s ease-in-out !important;
}

.tooltip.show {
    opacity: 1 !important;
}
