/* Custom Scrollbar for sidebars */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Canvas element should avoid default touching behaviors on mobile */
canvas {
    touch-action: none;
}

/* Tooltip dynamic type colors applied via JS classes, defined here for reference if needed */
.type-root {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFF;
}

.type-dep {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.type-dev {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.type-peer {
    background-color: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

/* Search Results Items */
.search-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background-color: #334155;
}