/* Custom tooltip container */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

/* Custom tooltip text */
.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px; /* Wider default width to fit more text */
    background-color: #fb246a;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 99999; /* Extremely high z-index to appear above all other elements */
    bottom: 150%;
    left: 50%;
    margin-left: -100px; /* Half of width */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Enhanced box shadow for better visibility */
    pointer-events: none; /* Ensures tooltip doesn't interfere with mouse events */
}

/* Arrow for the tooltip */
.custom-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #fb246a transparent transparent transparent;
}

/* Show the tooltip on hover */
.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Specific styles for the heart icon */
.heart-tooltip {
    cursor: pointer;
    font-size: 1.2em;
}

/* Heart tooltip positions */
.tooltip-save-job {
    position: absolute;
    left: -70px;
    z-index: 99999;
}

.tooltip-remove-job {
    position: absolute;
    left: -80px;
    z-index: 99999;
}

/* Additional tooltip position modifiers */
.tooltip-top {
    bottom: 150%;
    left: 50%;
    margin-left: -100px;
    z-index: 99999;
}

.tooltip-bottom {
    top: 150%;
    left: 50%;
    margin-left: -100px;
    bottom: auto;
    z-index: 99999;
}

.tooltip-left {
    top: 0;
    right: 120%;
    left: auto;
    margin-left: 0;
    width: 200px;
    z-index: 99999;
}

.tooltip-right {
    top: 0;
    left: 120%;
    right: auto;
    margin-left: 0;
    width: 200px;
    z-index: 99999;
}

/* Arrows for different positions */
.tooltip-bottom::after {
    bottom: 100%;
    top: auto;
    border-color: transparent transparent #fb246a transparent;
}

.tooltip-left::after {
    top: 15px;
    left: 100%;
    margin-top: 0;
    margin-left: 0;
    border-color: transparent transparent transparent #fb246a;
}

.tooltip-right::after {
    top: 15px;
    right: 100%;
    left: auto;
    margin-top: 0;
    margin-left: 0;
    border-color: transparent #fb246a transparent transparent;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .tooltip-left, .tooltip-right {
        position: absolute;
        top: 30px !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        margin-left: -100px !important;
        width: 200px !important;
    }
    
    .tooltip-left::after, .tooltip-right::after {
        top: -16px !important;
        left: 50% !important;
        right: auto !important;
        margin-left: -8px !important;
        border-color: transparent transparent #fb246a transparent !important;
    }
} 