/* Ensure tooltips are always on top of everything */
.tippy-box {
    z-index: 99999 !important;
    position: relative !important;
}

.tippy-box[data-theme~="custom"] {
    z-index: 99999 !important;
    position: relative !important;
}

/* Force tooltip to be above all other elements */
.tippy-box,
.tippy-box * {
    z-index: 99999 !important;
}

/* Base Tippy Styles */
.tippy-box[data-theme~="custom"] {
    background-color: #e0e0e0;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    line-height: 1.4;
    padding: 0;
    z-index: 99999 !important;
}

/* Custom Tippy theme "custom" */
.tippy-box[data-theme~="custom"] {
    background-color: #ffffff;
    color: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1600px;
    line-height: 1.4;
    transition: all 0.2s ease-in-out;
}

.tippy-box[data-theme~="custom"] .tippy-content {
    padding: 0;
}

.tippy-box[data-theme~="custom"][data-placement^="top"] > .tippy-arrow::before {
    border-top-color: #ffffff;
    border-width: 8px 8px 0;
    bottom: -8px;
}

.tippy-box[data-theme~="custom"][data-placement^="bottom"] > .tippy-arrow::before {
    border-bottom-color: #ffffff;
    border-width: 0 8px 8px;
    top: -8px;
}

.tippy-box[data-theme~="custom"][data-placement^="left"] > .tippy-arrow::before {
    border-left-color: #ffffff;
    border-width: 8px 0 8px 8px;
    right: -8px;
}

.tippy-box[data-theme~="custom"][data-placement^="right"] > .tippy-arrow::before {
    border-right-color: #ffffff;
    border-width: 8px 8px 8px 0;
    left: -8px;
}

/* Arrow border styles */
.tippy-box[data-theme~="custom"] > .tippy-arrow::after {
    content: '';
    position: absolute;
    border: 1px solid #e0e0e0;
    width: 0;
    height: 0;
}

.tippy-box[data-theme~="custom"][data-placement^="top"] > .tippy-arrow::after {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #e0e0e0;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
}

.tippy-box[data-theme~="custom"][data-placement^="bottom"] > .tippy-arrow::after {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #e0e0e0;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
}

.tippy-box[data-theme~="custom"][data-placement^="left"] > .tippy-arrow::after {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #e0e0e0;
    right: -9px;
    top: 50%;
    transform: translateY(-50%);
}

.tippy-box[data-theme~="custom"][data-placement^="right"] > .tippy-arrow::after {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #e0e0e0;
    left: -9px;
    top: 50%;
    transform: translateY(-50%);
}

/* Animation */
@keyframes tippy-fade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tippy-box[data-theme~="custom"][data-state="visible"] {
    animation: tippy-fade 0.2s ease-out;
}

/* Hover effect */
.tippy-box[data-theme~="custom"]:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Material Icon Styles */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
    line-height: 1;
    color: #4ea5f2;
    background-color: transparent;
    padding: 6px;
    margin-left: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.material-symbols-outlined:hover {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    background-color: rgba(78, 165, 242, 0.1);
    transform: scale(1.1);
}

/* Custom horizontal animation */
@keyframes customHorizontal {
    0% {
        opacity: 0;
        transform: scaleX(0.95);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.tippy-box[data-theme~="custom"][data-animation="custom-horizontal"] {
    animation: customHorizontal 0.2s ease-out;
}