.results-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    font-size: 18px;
}

.results-grid-title,
.results-grid-value {
    /* Remove inline display from markup; use classes instead */
}

.visible {
    display: block;
}

.hidden {
    display: none;
}

.results-grid-title {
    font-weight: bold;
}

.results-grid-value {
    button {
        font-size: 18px;
        border: none;
        background-color: unset;
        &:hover {
            cursor: pointer;
            color: #444;
        }
        &:active {
            color: #777;
        }
    }
}

.result-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.result-card-cell {
    margin-bottom: 5px;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    select: none;
    visibility: hidden;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Add delay to category tooltips */
.tooltip .category-tooltip {
    transition-delay: 1s;
}

.filter-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.filter-button {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 16px;
}

.filter-button:hover {
    background-color: #eee;
}

.result-card .molecule-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-card h1 {
    text-align: center;
    font-weight: normal;
    font-size: 20px;
    margin-bottom: 2px;
}

.result-card-id {
    text-align: center;
    font-size: 18px;
    color: #555;
    margin: 0 0 10px;
}