/* AAA Unitip - Modern Tooltip Style */

#unitip {
    position: absolute;
    z-index: 9999; /* Ensure it floats above everything */
    top: -1000px;
    display: none;
    pointer-events: none; /* Allows clicking through the tooltip if it overlaps */
}

/* The Container */
#unitip .unitip-container {
    background: rgba(15, 18, 25, 0.95); /* Deep dark background */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    box-shadow: 
        0 0 0 1px #000, /* Inner black stroke for contrast */
        0 8px 20px rgba(0, 0, 0, 0.6), /* Drop shadow */
        0 0 15px rgba(212, 175, 55, 0.15); /* Faint gold glow */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 15px;
    min-width: 250px;
    max-width: 350px;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

/* If the original HTML structure relies on these IDs, we style them to fit the container 
   The original JS writes into #unitipmid, so we style that.
*/

#unitippoint, #unitipcap {
    display: none !important; /* Hide the old top/bottom image caps */
}

#unitipmid {
    background: transparent !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}

/* Typography inside the tooltip */
#unitipmid strong, 
#unitipmid b {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 15px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Colorize specific item info usually found in RO tooltips */
#unitipmid font[color^="#ff0000"] { color: #ff6b6b !important; } /* Red text brighter */
#unitipmid font[color^="#0000ff"] { color: #54a0ff !important; } /* Blue text brighter */
#unitipmid font[color^="#000000"] { color: #eee !important; }    /* Black text to white */