﻿/* Base tooltip styling */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

.smart-tooltip-box {
    position: fixed;
    background-color: rgba(0, 0, 0, 1);
    color: #ffffff; /* Ensuring text is white */
    padding: 8px 12px 0;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    max-width: 250px;
    width: max-content;
    text-align: center;
    white-space: pre-line;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

/* Multiline support */
[data-tooltip-multiline] + .smart-tooltip-box {
    white-space: normal;
}

.smart-tooltip-box.visible {
    opacity: 1;
    visibility: visible;
}

.smart-tooltip-arrow {
    position: absolute;
    width: 8px;
    height: 8px;
    background: inherit;
    transform: rotate(45deg);
}

/* Enhanced tooltip content styling */
.smart-tooltip-box .description,
.smart-tooltip-box .timeframe {
    color: #ffffff; /* Explicitly setting white color for both elements */
}

.smart-tooltip-box .description {
    font-weight: 500;
}

.smart-tooltip-box .timeframe {
    margin-top: 0px;
    font-size: 0.9em;
    opacity: 1;
}

/* Button styles */
.sort-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
}



.sort-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sort-btn.active-sort {
    font-weight: bold;
}
