/* Стили для компонента Tree View */

.tree-view {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    user-select: none;
}

.tree-item {
    margin: 0;
}

.tree-item-content {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tree-item-content:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tree-item-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 4px;
    cursor: pointer;
    font-size: 10px;
    flex-shrink: 0;
}

.tree-item-checkbox {
    margin-right: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.tree-item-label {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-item-label.tree-item-has-children {
    font-weight: 500;
}

.tree-item-children {
    margin-left: 0;
}

/* Темная тема (опционально) */
@media (prefers-color-scheme: dark) {
    .tree-item-content:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}
